Re: Bug: Deferred FKey Check Happening on Double Update, Not Single

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: Bug: Deferred FKey Check Happening on Double Update, Not Single
Дата
Msg-id 87tvh4k5m5.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на Re: Bug: Deferred FKey Check Happening on Double Update, Not Single  (Doug Safreno <doug@avinetworks.com>)
Ответы Re: Bug: Deferred FKey Check Happening on Double Update, Not Single  (Doug Safreno <doug@avinetworks.com>)
Список pgsql-bugs
>>>>> "Doug" == Doug Safreno <doug@avinetworks.com> writes:

 Doug> Hey Sergei,

 Doug> Neither transaction touches FK fields - so shouldn't they both
 Doug> skip FK trigger check?

The optimization that lets the check be skipped only applies on the
_first_ modification of the row within the transaction. On the second or
subsequent modifications, the code can't easily tell whether the row was
inserted in the current transaction (in which case the optimization must
be skipped) or just modified, so it assumes the worst.

-- 
Andrew (irc:RhodiumToad)


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

Предыдущее
От: Doug Safreno
Дата:
Сообщение: Re: Bug: Deferred FKey Check Happening on Double Update, Not Single
Следующее
От: Doug Safreno
Дата:
Сообщение: Re: Bug: Deferred FKey Check Happening on Double Update, Not Single