Re: Foreign Key Deferrable Misunderstanding or Bug?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Foreign Key Deferrable Misunderstanding or Bug?
Дата
Msg-id 5976.1249595220@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Foreign Key Deferrable Misunderstanding or Bug?  (Paul Rogers <progers@sparkbase.com>)
Список pgsql-general
Paul Rogers <progers@sparkbase.com> writes:
> Why does the attached script fail with a foreign key constraint violation?

The ON DELETE RESTRICT is why.  Per the fine manual:

    [RESTRICT] is the same as NO ACTION except that the check is not
    deferrable.

It's a bit odd, but that's the best interpretation we can make of the
spec's wording about how this should work.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Empty Updates, ON UPDATE triggers and Rules
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Foreign Key Deferrable Misunderstanding or Bug?