Re: Can anyone explain this: duplicate dbs.

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: John A Meinel <john(at)arbash-meinel(dot)com>
Cc: SpaceBallOne <space_ball_one(at)hotmail(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Can anyone explain this: duplicate dbs.
Date: 2005-05-25 03:32:46
Message-ID: 20050525033246.GB15626@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, May 24, 2005 at 21:39:15 -0500,
John A Meinel <john(at)arbash-meinel(dot)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.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Philip Hallstrom 2005-05-25 15:52:24 Re: Need help to decide Mysql vs Postgres
Previous Message Tom Lane 2005-05-25 03:02:41 Re: Can anyone explain this: duplicate dbs.