Re: Replicating PostgreSQL DB to lightweight system

From: Vivek Khera <vivek(at)khera(dot)org>
To: Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Replicating PostgreSQL DB to lightweight system
Date: 2006-05-03 14:09:32
Message-ID: F004D99D-2CD5-4539-9842-91BF88C5EFDE@khera.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On May 3, 2006, at 12:00 AM, David Fetter wrote:

>> Would be glad to hear if there are examples of existing
>> commercial/OSS products to serve the purpose.
>
> If you're not using PostgreSQL for the smaller systems, you might be
> able to rig something up with pg_dump using the --inserts option. The
> tough part will probably be getting the schema translated into SQLite
> (or whatever system you choose) idiom.

What I'd do is use pg_dump --data-only generating insert statements
and have pre-defined sqlite schema that is compatible with the dump
file. Then just load the data that way and distribute the new sqlite
file to your clients.

It should be scriptable within a half day or so, if that much.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Javier de la Torre 2006-05-03 14:11:36 Re: psql is slow and it does not take much resources
Previous Message Larry Rosenman 2006-05-03 14:07:58 Re: psql is slow and it does not take much resources