pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: John A Meinel <john@arbash-meinel.com>
Cc: SpaceBallOne <space_ball_one@hotmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Can anyone explain this: duplicate dbs.
Date: Tue, 24 May 2005 23:02:41 -0400
Message-ID: <7690.1116990161@sss.pgh.pa.us> (raw)
In-Reply-To: <4293E553.6070400@arbash-meinel.com>
References: <BAY14-DAV38E580C92EFF811F1266ACC0E0@phx.gbl>
	<4293E553.6070400@arbash-meinel.com>

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



view thread (10+ messages)  latest in thread

Message-ID: <7690.1116990161@sss.pgh.pa.us>
Permalink:  ../7690.1116990161@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7690.1116990161@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, john@arbash-meinel.com, space_ball_one@hotmail.com
  Subject: Re: Can anyone explain this: duplicate dbs.
  In-Reply-To: <7690.1116990161@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox