Re: "deadlock detected" documentation

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: "deadlock detected" documentation
Дата
Msg-id 3EC92E3F.6080703@Yahoo.com
обсуждение исходный текст
Ответ на "deadlock detected" documentation  (Matt Mello <alien@spaceship.com>)
Ответы Re: "deadlock detected" / cascading locks  (Matt Mello <alien@spaceship.com>)
Список pgsql-sql
Tom Lane wrote:
> Matt Mello <alien@spaceship.com> writes:
> 
>>The two situations I can think of are:
>>1) Two FK fields in a single row pointing to 2 different FK tables, for 
>>which any 2 updates get locks in opposite order (seems like a deadlock).
> 
> 
> I don't think this is possible, at least in 7.3.  All backends are
> guaranteed to run the triggers of a given table in the same order,
> so the foreign-row locks should be acquired in the same column order
> in all cases.

Except the sessions set deferred modes differently.


Jan

-- 
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



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

Предыдущее
От: Achilleus Mantzios
Дата:
Сообщение: Re: Testing castability of text to numeric
Следующее
От: Matt Mello
Дата:
Сообщение: Re: "deadlock detected" / cascading locks