Re: creation of foreign key without checking prior data?

Поиск
Список
Период
Сортировка
От Peter Hunsberger
Тема Re: creation of foreign key without checking prior data?
Дата
Msg-id cc159a4a0909171031g2cd3de37m2e8676bc9ff417a0@mail.gmail.com
обсуждение исходный текст
Ответ на creation of foreign key without checking prior data?  (hubert depesz lubaczewski <depesz@depesz.com>)
Ответы Re: creation of foreign key without checking prior data?  (hubert depesz lubaczewski <depesz@depesz.com>)
Список 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 по дате отправления:

Предыдущее
От: Martin Gainty
Дата:
Сообщение: 'Weird' errors
Следующее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: creation of foreign key without checking prior data?