Re: Vacuous errors in pg_dump ... | pg_restore pipeline - Mailing list pgsql-general

From Vivek Khera
Subject Re: Vacuous errors in pg_dump ... | pg_restore pipeline
Date
Msg-id 8AE58742-A3FB-4AB3-AAB3-7BEEA542724B@khera.org
Whole thread Raw
In response to Re: Vacuous errors in pg_dump ... | pg_restore pipeline  ("Douglas McNaught" <doug@mcnaught.org>)
List pgsql-general
On Feb 20, 2008, at 2:12 PM, Douglas McNaught wrote:

>>
>> Alternatively, is there a better way to streamline the duplication
>> of a
>> database?
>
> How about:
>
> CREATE DATABASE newdb TEMPLATE olddb;

The template DB has to have no open connections during the entire copy
process, so it is not always possible when the DB is big and/or busy.
But it is a wonderful way to snapshot development databases before
potentially breaking them with new features.  :-)


pgsql-general by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: Querying the schema for column widths - what syntax do I use?
Next
From: Terry Lee Tucker
Date:
Subject: Disable Triggers