Re: Can anyone explain this: duplicate dbs. - Mailing list pgsql-performance

From Bruno Wolff III
Subject Re: Can anyone explain this: duplicate dbs.
Date
Msg-id 20050525033246.GB15626@wolff.to
Whole thread Raw
In response to Re: Can anyone explain this: duplicate dbs.  (John A Meinel <john@arbash-meinel.com>)
List pgsql-performance
On Tue, May 24, 2005 at 21:39:15 -0500,
  John A Meinel <john@arbash-meinel.com> wrote:
>
> By the way, I think doing:
>
> CREATE DATABASE tempdb WITH TEMPLATE = originaldb;
>
> Is a much faster way of doing dump and load. I *think* it would recreate
> indexes, etc. If it just does a copy it may not show the dump/restore
> improvement.

You need to be careful when doing this. See section 18.3 of the 8.0 docs
for caveats.

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Can anyone explain this: duplicate dbs.
Next
From: Philip Hallstrom
Date:
Subject: Re: Need help to decide Mysql vs Postgres