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 48440D1B55F for ; Sun, 16 Nov 2003 19:28:29 +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 04636-09 for ; Sun, 16 Nov 2003 15:27:59 -0400 (AST) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 993A6D1B566 for ; Sun, 16 Nov 2003 15:27:57 -0400 (AST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 43A25352E0; Sun, 16 Nov 2003 11:27:58 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 420A4352DF; Sun, 16 Nov 2003 11:27:58 -0800 (PST) Date: Sun, 16 Nov 2003 11:27:58 -0800 (PST) From: Stephan Szabo To: ow Cc: pgsql-admin@postgresql.org Subject: Re: pg_restore and FK constraints with large dbs In-Reply-To: <20031116191422.49649.qmail@web21402.mail.yahoo.com> Message-ID: <20031116111958.W65813@megazone.bigpanda.com> References: <20031116191422.49649.qmail@web21402.mail.yahoo.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/307 X-Sequence-Number: 11294 On Sun, 16 Nov 2003, ow wrote: > > --- 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. Locale/Encoding changes are not part of the inside of the database at all so there's no guarantees for that. For the others, sometimes people do work on textual representations of dumps. Neither of those is a reason not to have an option to turn them off in restore, but the check should be allowed if desired. If you look at the -hackers discussion, options for this were talked about recently, but it came pretty late in the 7.4 development cycle, after beta started. It might happen for 7.5 if a consensus is reached for behavior.