X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4A6DFD1BB5E for ; Mon, 17 Nov 2003 19:46:13 +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 38017-01 for ; Mon, 17 Nov 2003 15:45:43 -0400 (AST) Received: from jefftrout.com (h00a0cc4084e5.ne.client2.attbi.com [24.128.241.68]) by svr1.postgresql.org (Postfix) with SMTP id 673F2D1B53A for ; Mon, 17 Nov 2003 15:45:41 -0400 (AST) Received: (qmail 22309 invoked from network); 17 Nov 2003 19:45:46 -0000 Received: from unknown (HELO crumulent) (10.10.10.180) by 10.10.10.10 with SMTP; 17 Nov 2003 19:45:46 -0000 Date: Mon, 17 Nov 2003 14:47:03 -0500 From: Jeff To: Stephan Szabo Cc: oneway_111@yahoo.com, pgsql-admin@postgresql.org Subject: Re: pg_restore and FK constraints with large dbs Message-Id: <20031117144703.138edb9f.threshar@torgo.978.org> In-Reply-To: <20031117103655.W99532@megazone.bigpanda.com> References: <20031117041435.13499.qmail@web21402.mail.yahoo.com> <20031117103655.W99532@megazone.bigpanda.com> 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: 200311/316 X-Sequence-Number: 11303 On Mon, 17 Nov 2003 10:40:20 -0800 (PST) Stephan Szabo wrote: > > By the way, what does your schema look like? I created an 80M row fk > table and 20K row pk table with an int4 key between them and indexes on > the two key fields. It took about 25 minutes on my not terribly fast > system using 7.4b5 to make the foreign key between them. It might have > been faster if I'd raised sort_mem to something larger than 8192. > i missed the start of this thread... but unless you are running 7.4 adding an FK (restore) is very slow. ZIt is fixed in 7.4.. especially w/lots of sort mem. But the need still exists for a faster backup & restore. I've had a couple threads on this in I think -admin and -performance listts. > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html -- -- Jeff Trout http://www.jefftrout.com/ http://www.stuarthamm.net/