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 472FDD1C4D4 for ; Mon, 17 Nov 2003 21:47:01 +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 57202-05 for ; Mon, 17 Nov 2003 17:46:32 -0400 (AST) Received: from web21404.mail.yahoo.com (web21404.mail.yahoo.com [216.136.232.74]) by svr1.postgresql.org (Postfix) with SMTP id 120C6D1B592 for ; Mon, 17 Nov 2003 17:46:30 -0400 (AST) Message-ID: <20031117214632.54492.qmail@web21404.mail.yahoo.com> Received: from [64.81.205.234] by web21404.mail.yahoo.com via HTTP; Mon, 17 Nov 2003 13:46:31 PST Date: Mon, 17 Nov 2003 13:46:31 -0800 (PST) From: ow Subject: Re: pg_restore and FK constraints with large dbs To: Stephan Szabo Cc: pgsql-admin@postgresql.org In-Reply-To: <20031117130034.M3748@megazone.bigpanda.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/320 X-Sequence-Number: 11307 --- Stephan Szabo wrote: > > I assume you're also not modifying the pktable rows (since that would > access the fk table based solely on the fk). I do modify the fk table: inserts and updates (but pk is never updated). Also do not delete records. > Does the multi-field index start with fk or some other field? Some other field. In general, even if I put that additional index and somehow cut down FK verification time for 1 constraint to, say, 30 min, does that mean that the problem is solved? Tomorrow, someone may come with 800M fk table against 200K pk table, or he may have 10 FK constraints like this, etc. How's he going to restore db in production environment when there's a problem and time is factor? Thanks __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree