Skip site navigation (1) Skip section navigation (2)

Re: Performance question: Restore + INDEX

From: Chris Browne <cbbrowne(at)acm(dot)org>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Performance question: Restore + INDEX
Date: 2005-09-26 03:43:54
Message-ID: 6064somr2d.fsf@dba2.int.libertyrms.com (view raw or flat)
Thread:
Lists: pgsql-admin
an(at)mediaroot(dot)de (Aldor) writes:
> I'm curious how other people do it:
>
> What is faster?
>
> 1. CREATE TABLE
> 2. restore data
> 3. CREATE INDEX
>
> or
>
> 1. CREATE TABLE
> 2. CREATE INDEX
> 3. restore data

Creating the index AFTER loading the data is definitely faster.  But
by all means do your own tests; it's pretty easy to do so and satisfy
yourself...
-- 
(format nil "~S(at)~S" "cbbrowne" "ntlug.org")
http://cbbrowne.com/info/languages.html
"It worked about as well as sticking a blender in the middle of a lime
plantation and hoping they'll make margaritas out of themselves."
-- Frederick J. Polsky v1.0

In response to

pgsql-admin by date

Next:From: Allan KamauDate: 2005-09-26 10:09:32
Subject: Preventing database access (including valid users in other databases)
Previous:From: Michael FuhrDate: 2005-09-26 01:19:01
Subject: Re: Performance question: Restore + INDEX

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group