Re: Vacuous errors in pg_dump ... | pg_restore pipeline

From: Vivek Khera <vivek(at)khera(dot)org>
To: Postgres General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Vacuous errors in pg_dump ... | pg_restore pipeline
Date: 2008-02-21 15:25:37
Message-ID: 8AE58742-A3FB-4AB3-AAB3-7BEEA542724B@khera.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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. :-)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Terry Lee Tucker 2008-02-21 15:26:05 Disable Triggers
Previous Message Terry Lee Tucker 2008-02-21 15:20:17 Disable Triggers