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

From Peter Hunsberger
Subject Re: creation of foreign key without checking prior data?
Date
Msg-id cc159a4a0909171031g2cd3de37m2e8676bc9ff417a0@mail.gmail.com
Whole thread Raw
In response to creation of foreign key without checking prior data?  (hubert depesz lubaczewski <depesz@depesz.com>)
Responses Re: creation of foreign key without checking prior data?
List pgsql-general
On Thu, Sep 17, 2009 at 11:40 AM, hubert depesz lubaczewski
<depesz@depesz.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

pgsql-general by date:

Previous
From: Martin Gainty
Date:
Subject: 'Weird' errors
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: creation of foreign key without checking prior data?