Re: row-level deadlock problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: row-level deadlock problem
Дата
Msg-id 26785.1101578316@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: row-level deadlock problem  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: row-level deadlock problem  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> Well, there has to be something, since an UPDATE in Read Committed mode
> simply doesn't have any locks that can deadlock.

You're mistaken; it takes a row lock on each row it updates.  I'm not
sure why the two UPDATEs are visiting the same rows in different orders,
but if they do the failure is certainly possible.

            regards, tom lane

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Can one alter the format of a numeric column?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: how many JOINs?