Re: FK check implementation

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: FK check implementation
Дата
Msg-id 54381EFD.5070602@aklaver.com
обсуждение исходный текст
Ответ на Re: FK check implementation  (Nick Barnes <nickbarnes01@gmail.com>)
Ответы Re: FK check implementation  (Nick Barnes <nickbarnes01@gmail.com>)
Список pgsql-general
On 10/10/2014 10:41 AM, Nick Barnes wrote:

>
> I understand why the FK insert needs to lock on the PK row. But why is
> the PK delete trying to lock the FK row? If it finds one, won't the
> delete fail anyway? If it doesn't find one, what is there to lock?
>

I would say this has to do with setting DEFERRABLE on a constraint.


--
Adrian Klaver
adrian.klaver@aklaver.com


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: psql generate insert command based on select
Следующее
От: "vibhor.kumar@enterprisedb.com"
Дата:
Сообщение: Re: psql generate insert command based on select