Re: Distributing PostGres database to various customers - Mailing list pgsql-general

From Alexander Staubo
Subject Re: Distributing PostGres database to various customers
Date
Msg-id 88daf38c0706110608g557d3551s5fa526039764c451@mail.gmail.com
Whole thread Raw
In response to Distributing PostGres database to various customers  ("Mike Gould" <mgould@allcoast.net>)
Responses Re: Distributing PostGres database to various customers  (David Fetter <david@fetter.org>)
List pgsql-general
On 6/11/07, Mike Gould <mgould@allcoast.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.

pgsql-general by date:

Previous
From: Thomas Pundt
Date:
Subject: Re: transaction problem using cursors
Next
From: "Pit M."
Date:
Subject: Re: transaction problem using cursors