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

From Tom Lane
Subject Re: Can anyone explain this: duplicate dbs.
Date
Msg-id 7690.1116990161@sss.pgh.pa.us
Whole thread Raw
In response to Re: Can anyone explain this: duplicate dbs.  (John A Meinel <john@arbash-meinel.com>)
List pgsql-performance
John A Meinel <john@arbash-meinel.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

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Can anyone explain this: duplicate dbs.
Next
From: Bruno Wolff III
Date:
Subject: Re: Can anyone explain this: duplicate dbs.