X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A48F1D9294 for ; Sun, 25 Sep 2005 22:19:19 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 83606-08 for ; Mon, 26 Sep 2005 01:19:14 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id C7E9AD8361 for ; Sun, 25 Sep 2005 22:19:14 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j8Q1J29P061708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 25 Sep 2005 19:19:04 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j8Q1J1MU011486; Sun, 25 Sep 2005 19:19:01 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j8Q1J1Kf011485; Sun, 25 Sep 2005 19:19:01 -0600 (MDT) (envelope-from mfuhr) Date: Sun, 25 Sep 2005 19:19:01 -0600 From: Michael Fuhr To: Aldor Cc: pgsql-admin@postgresql.org Subject: Re: Performance question: Restore + INDEX Message-ID: <20050926011901.GA11448@winnie.fuhr.org> References: <4337413D.4040802@mediaroot.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4337413D.4040802@mediaroot.de> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 required=5 tests=[AWL=0.005] X-Spam-Level: X-Archive-Number: 200509/286 X-Sequence-Number: 19023 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