Re: creation of foreign key without checking prior data? - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: creation of foreign key without checking prior data?
Date
Msg-id 20090917183420.GA16505@depesz.com
Whole thread Raw
In response to Re: creation of foreign key without checking prior data?  (Peter Hunsberger <peter.hunsberger@gmail.com>)
Responses Re: creation of foreign key without checking prior data?
List pgsql-general
On Thu, Sep 17, 2009 at 01:22:52PM -0500, Peter Hunsberger wrote:
> You can't have a foreign key that doesn't have relational integrity,
> it is no longer a foreign key.  If you don't want the delay then don't
> define the key, at least until some point at which you can take the
> delay.  If there is never such a time then your operational scenario
> needs changing, not Postgres...

you do realize that having foreign key defined doesn't guarantee
integrity?

depesz

--
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Row estimates on empty table
Next
From: Richard Huxton
Date:
Subject: Re: 'Weird' errors