Search Postgresql Archives

Re: Distributing PostGres database to various customers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/11/07, Mike Gould <mgould@xxxxxxxxxxxx> 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.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux