X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id CC395D1B54C for ; Tue, 28 Oct 2003 19:25:59 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 52676-05 for ; Tue, 28 Oct 2003 15:25:29 -0400 (AST) Received: from dhcp-7-248.ma.lycos.com (waltham-nat.ma.lycos.com [209.202.205.1]) by svr1.postgresql.org (Postfix) with SMTP id 7D8A7D1B55D for ; Tue, 28 Oct 2003 15:25:27 -0400 (AST) Received: (qmail 30435 invoked from network); 28 Oct 2003 19:27:19 -0000 Received: from dhcp-7-41.ma.lycos.com (HELO squeegit) (10.124.7.41) by dhcp-7-248.ma.lycos.com with SMTP; 28 Oct 2003 19:27:19 -0000 Date: Tue, 28 Oct 2003 14:25:24 -0500 From: Jeff To: Vivek Khera Cc: pgsql-performance@postgresql.org Subject: Re: Adding foreign key performance Message-Id: <20031028142524.30e9e6fc.threshar@torgo.978.org> In-Reply-To: References: <20031028091645.3d610841.threshar@torgo.978.org> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/718 X-Sequence-Number: 4466 On Tue, 28 Oct 2003 14:22:04 -0500 Vivek Khera wrote: > If you're restoring from a pg_dump -Fc (compressed dump) it already > happens for you. The indexes and foreign keys are not added until the > very end, from what I recall. > This happens with regular dumps - at the end is a pile of alter table's that create the indices, FK's and triggers. Is the -Fc method different? -- Jeff Trout http://www.jefftrout.com/ http://www.stuarthamm.net/