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 51FA4D1B55E for ; Sun, 16 Nov 2003 19:14:56 +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 96920-09 for ; Sun, 16 Nov 2003 15:14:26 -0400 (AST) Received: from web21402.mail.yahoo.com (web21402.mail.yahoo.com [216.136.232.72]) by svr1.postgresql.org (Postfix) with SMTP id 349E5D1B561 for ; Sun, 16 Nov 2003 15:14:21 -0400 (AST) Message-ID: <20031116191422.49649.qmail@web21402.mail.yahoo.com> Received: from [64.81.205.234] by web21402.mail.yahoo.com via HTTP; Sun, 16 Nov 2003 11:14:22 PST Date: Sun, 16 Nov 2003 11:14:22 -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: <20031116101702.Q64286@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/306 X-Sequence-Number: 11293 --- Stephan Szabo wrote: > Only assuming that no changes were made between dump and restore. This > could be changes to schema or data done manually, but it could also be a > locale or possibly encoding change if you have any textual foreign keys. I'm restoring the database, meaning that (a) it's believed that current db is corrupt and needs to be restored or (b) the db is moved to a different server. Hence any changes after the last dump will be blown away anyway, wouldn't they? One would have to apply the changes manually or whatever, once the restore is completed. The problem is that restoration process is taking too long, mostly due to FK checks, as it was described earlier, and it appears there's no way to speed this up. Sadly, I'm looking at m*Sql and see that they have "SET FOREIGN_KEY_CHECKS=0" command. Thanks __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree