Re: creation of foreign key without checking prior data?

From: Peter Hunsberger <peter(dot)hunsberger(at)gmail(dot)com>
To: depesz(at)depesz(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: creation of foreign key without checking prior data?
Date: 2009-09-17 17:31:14
Message-ID: cc159a4a0909171031g2cd3de37m2e8676bc9ff417a0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Sep 17, 2009 at 11:40 AM, hubert depesz lubaczewski
<depesz(at)depesz(dot)com> wrote:
>
> So, since (as we know) foreign keys are not fault-proof, wouldn't it be
> good to provide a way to create them without all this time-consuming
> check?

No.

If you don't want the behavior of a foreign key then just don't define
a foreign key. Load the data, clean it up, then create the foreign key

--
Peter Hunsberger

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2009-09-17 17:44:55 Re: creation of foreign key without checking prior data?
Previous Message Martin Gainty 2009-09-17 16:56:06 'Weird' errors