agora inbox for [email protected]
help / color / mirror / Atom feedFrom: Jan Wieck <[email protected]>
To: Tom Lane <[email protected]>
Cc: Christopher Kings-Lynne <[email protected]>
Cc: Bruce Momjian <[email protected]>
Cc: Stephan Szabo <[email protected]>
Cc: Peter Childs <[email protected]>
Cc: PostgreSQL-development <[email protected]>
Subject: Re: ADD FOREIGN KEY (was Re: [GENERAL] 7.4Beta)
Date: Mon, 29 Sep 2003 20:55:05 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
Tom Lane wrote:
> Jan Wieck <[email protected]> writes:
>> I think I can accept it to be the choice of the DBA what to do. Pg_dump
>> has that kind of options already, one can choose between COPY and INSERT
>> for example. Why not adding the choice of dumping FKeys as ALTER TABLE
>> or CREATE CONSTRAINT TRIGGER?
>
> We don't want it dumping as CREATE CONSTRAINT TRIGGER, because (a) that
> loses pg_depend information and (b) it's too low-level a representation;
> we couldn't ever change the implementation of foreign keys as long as
> dumps look like that.
That's finally 2 points, okay.
>
> Also, I don't see why you'd want to make such a choice at pg_dump time.
> Probably better to control it at restore time. Accordingly, my proposal
> if we were to go that route would be a boolean GUC variable that simply
> prevents ALTER TABLE ADD FOREIGN KEY from doing the validity checks.
Okay too. And this would be simple and safe enough to add it at the time
being.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== [email protected] #
view thread (92+ messages) latest in thread
reply
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: ADD FOREIGN KEY (was Re: [GENERAL] 7.4Beta)
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox