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 15355D1B518 for ; Sun, 16 Nov 2003 07:18:20 +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 93214-09 for ; Sun, 16 Nov 2003 03:17:50 -0400 (AST) Received: from web21409.mail.yahoo.com (web21409.mail.yahoo.com [216.136.232.79]) by svr1.postgresql.org (Postfix) with SMTP id C207CD1B4E4 for ; Sun, 16 Nov 2003 03:17:48 -0400 (AST) Message-ID: <20031116071749.32670.qmail@web21409.mail.yahoo.com> Received: from [64.81.205.234] by web21409.mail.yahoo.com via HTTP; Sat, 15 Nov 2003 23:17:49 PST Date: Sat, 15 Nov 2003 23:17:49 -0800 (PST) From: ow Subject: Re: pg_restore and FK constraints with large dbs To: Peter Eisentraut Cc: pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/298 X-Sequence-Number: 11285 pgSql 7.4.rc2 --- Peter Eisentraut wrote: > If you you pg_dump and dump schema and data together, then there is some > magic to temporarily disable foreign key constraints. Try it out. Dunno. Don't see any magic so far. In fact, pg_restore appears to use internally the same SQL to verify that the validity of the FKs as "ALTER TABLE xxx ADD CONSTRAINT". And it's not any faster either. Is there a special option that one should specify to suspend FK checks during pg_restore? Otherwise, pg_restore's performance is ... umm, not very good, to put it mildly. Thanks __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree