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 A0CBDD1E1A0 for ; Sun, 16 Nov 2003 16:46:17 +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 77951-02 for ; Sun, 16 Nov 2003 12:45:46 -0400 (AST) Received: from web21405.mail.yahoo.com (web21405.mail.yahoo.com [216.136.232.75]) by svr1.postgresql.org (Postfix) with SMTP id 6901FD1D207 for ; Sun, 16 Nov 2003 12:45:45 -0400 (AST) Message-ID: <20031116164544.72117.qmail@web21405.mail.yahoo.com> Received: from [64.81.205.234] by web21405.mail.yahoo.com via HTTP; Sun, 16 Nov 2003 08:45:44 PST Date: Sun, 16 Nov 2003 08:45:44 -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/303 X-Sequence-Number: 11290 --- Peter EiEisentrautpeter_e@gmgmxet> wrote: > > Read again. No one was talking of pg_restore. Perhaps I should clarify. First, I ran pg_dump to extract schema and data *together*. Then I ran pg_restore to restore the db. It took about 1 hour to create tables and copy the data, then about 40 min to create indexes, then pg_restore spent 4.5 hours checking one (1) FKFKonstraint (80M table with FKFKsgainst 20K table with PKPKs 4.5 hours to check one FKFKonstraint - this is want I meant by bad performance. I'm looking for a way to suspend FKFKhecks since data is coming from pg_dump and, hence, it's clean. Thanks __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree