Re: BUG #4648: needless deadlock on tables having foreign-key

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #4648: needless deadlock on tables having foreign-key
Дата
Msg-id 10574.1234454074@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #4648: needless deadlock on tables having foreign-key  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: BUG #4648: needless deadlock on tables having foreign-key
Список pgsql-bugs
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> Hmm, the first UPDATE should've blocked already. It should've fired a RI
> trigger to lock the parent tuple in shared mode, but it looks like
> that's not happening for some reason.

Read the special code in AfterTriggerSaveEvent.  This behavior is
exactly what is expected --- since the referencing field didn't
change, only the second update attempt actually fires the trigger.

            regards, tom lane

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #4648: needless deadlock on tables having foreign-key
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #4649: unclear in create trigger - complete example