From: | John DeSoi <desoi(at)pgedit(dot)com> |
---|---|
To: | Mark Harrison <mh(at)pixar(dot)com> |
Cc: | Postgresql-General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: mirroring tables to sqlite? |
Date: | 2005-12-06 01:03:52 |
Message-ID: | 89998529-46DB-4F17-93AC-8F9E59CC0335@pgedit.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Dec 5, 2005, at 6:05 PM, Mark Harrison wrote:
> Right now I'm going over the output of "psql -echo-hidden" to see how
> to pull the appropriate schema information from postgresql. The final
> output will be sqlite statements to create tables which mirror the
> structure in the master postgresql database.
You might be able to use pg_dump to get what you need - it can dump
the schema with or without data. In fact prior to SQLite 3.0, SQLite
had support for directly reading pg_dump output. For simple schemas
it would probably work fine. Just be sure to use the -d option if you
decide to dump data and you are using SQLite 3.0 or later.
http://www.postgresql.org/docs/8.1/interactive/app-pgdump.html
http://www.sqlite.org/lang_copy.html
John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL
From | Date | Subject | |
---|---|---|---|
Next Message | Oleg Bartunov | 2005-12-06 02:12:12 | Re: fts, compond words? |
Previous Message | Joshua D. Drake | 2005-12-06 00:03:50 | Re: Changing database owner (7.4) |