Re: creation of foreign key without checking prior data?

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Peter Hunsberger <peter(dot)hunsberger(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: creation of foreign key without checking prior data?
Date: 2009-09-17 18:34:20
Message-ID: 20090917183420.GA16505@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)depesz(dot)com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2009-09-17 18:35:30 Re: 'Weird' errors
Previous Message Alban Hertroys 2009-09-17 18:33:07 Row estimates on empty table