pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Aldor <an@mediaroot.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Performance question: Restore + INDEX
Date: Sun, 25 Sep 2005 19:19:01 -0600
Message-ID: <20050926011901.GA11448@winnie.fuhr.org> (raw)
In-Reply-To: <4337413D.4040802@mediaroot.de>
References: <4337413D.4040802@mediaroot.de>

On Mon, Sep 26, 2005 at 01:30:53AM +0100, Aldor wrote:
> What is faster?
> 
> 1. CREATE TABLE
> 2. restore data
> 3. CREATE INDEX
> 
> or
> 
> 1. CREATE TABLE
> 2. CREATE INDEX
> 3. restore data

See "Populating a Database" in the "Performance Tips" chapter of
the documentation:

http://www.postgresql.org/docs/8.0/interactive/populate.html

But instead of taking somebody's word for it, you could simply try
it both ways and see which is faster for yourself.

-- 
Michael Fuhr



view thread (3+ messages)  latest in thread

Message-ID: <20050926011901.GA11448@winnie.fuhr.org>
Permalink:  ../20050926011901.GA11448@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050926011901.GA11448@winnie.fuhr.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mike@fuhr.org, an@mediaroot.de
  Subject: Re: Performance question: Restore + INDEX
  In-Reply-To: <20050926011901.GA11448@winnie.fuhr.org>
  References: <4337413D.4040802@mediaroot.de> <20050926011901.GA11448@winnie.fuhr.org>

* 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