Re: [HACKERS] ERROR: WaitOnLock: error on wakeup - Aborting this transaction

Поиск
Список
Период
Сортировка
От Vadim Mikheev
Тема Re: [HACKERS] ERROR: WaitOnLock: error on wakeup - Aborting this transaction
Дата
Msg-id 37454163.921BF606@krs.ru
обсуждение исходный текст
Ответ на ERROR: WaitOnLock: error on wakeup - Aborting this transaction  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Ответы Re: [HACKERS] ERROR: WaitOnLock: error on wakeup - Aborting this transaction  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Список pgsql-hackers
Tatsuo Ishii wrote:
> 
> I get above message from the backend while trying to update same raw
> from different transactions (I guess). Is this normal?

1=>begin;
2=>begin;
1=>update t set a = 1 where c = 1;
2=>update t set a = 1 where c = 2;
1=>update t set a = 2 where c = 2; -- blocked by 2
2=>update t set a = 2 where c = 1; --> deadlock


Or you didn't use BEGIN/END ?

Vadim


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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: ERROR: WaitOnLock: error on wakeup - Aborting this transaction
Следующее
От: Michael Contzen
Дата:
Сообщение: Numeric and Aggregate: transform node 107