From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: ow <oneway_111@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_restore and FK constraints with large dbs
Date: Sun, 16 Nov 2003 11:27:58 -0800 (PST)
Message-ID: <20031116111958.W65813@megazone.bigpanda.com> (raw)
In-Reply-To: <20031116191422.49649.qmail@web21402.mail.yahoo.com>
References: <20031116191422.49649.qmail@web21402.mail.yahoo.com>
On Sun, 16 Nov 2003, ow wrote:
>
> --- Stephan Szabo <sszabo@megazone.bigpanda.com> 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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: sszabo@megazone.bigpanda.com, oneway_111@yahoo.com
Subject: Re: pg_restore and FK constraints with large dbs
In-Reply-To: <20031116111958.W65813@megazone.bigpanda.com>
References: <20031116191422.49649.qmail@web21402.mail.yahoo.com> <20031116111958.W65813@megazone.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox