Re: Distributing PostGres database to various customers

From: "Alexander Staubo" <alex(at)purefiction(dot)net>
To: fasupport(at)allcoast(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Distributing PostGres database to various customers
Date: 2007-06-11 13:08:07
Message-ID: 88daf38c0706110608g557d3551s5fa526039764c451@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 6/11/07, Mike Gould <mgould(at)allcoast(dot)net> wrote:
> How can we do this with PostGres? Other than backup and restore or creating
> SQL scripts I haven't been able to find another method. Some of these
> tables may have over a million rows in them initially if we convert old
> data.

The most portable way is probably pg_dump as plaintext:

pg_dump -Fp mydatabase >mydatabase.dump

Then restore with:

cat mydatabase.dump | psql mydatabase

Alexander.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pit M. 2007-06-11 13:15:56 Re: transaction problem using cursors
Previous Message Thomas Pundt 2007-06-11 12:48:20 Re: transaction problem using cursors