Re: Can anyone explain this: duplicate dbs.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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:02:41
Message-ID: 7690.1116990161@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

John A Meinel <john(at)arbash-meinel(dot)com> writes:
> 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.

CREATE DATABASE just does a physical copy, so it won't do anything at
all for bloat issues.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Bruno Wolff III 2005-05-25 03:32:46 Re: Can anyone explain this: duplicate dbs.
Previous Message Tom Lane 2005-05-25 03:01:28 Re: Can anyone explain this: duplicate dbs.