Re: [HACKERS] ERROR: WaitOnLock: error on wakeup - Aborting this transaction - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: [HACKERS] ERROR: WaitOnLock: error on wakeup - Aborting this transaction
Date
Msg-id 37454163.921BF606@krs.ru
Whole thread Raw
In response to ERROR: WaitOnLock: error on wakeup - Aborting this transaction  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Responses Re: [HACKERS] ERROR: WaitOnLock: error on wakeup - Aborting this transaction  (Tatsuo Ishii <t-ishii@sra.co.jp>)
List 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 by date:

Previous
From: Tatsuo Ishii
Date:
Subject: ERROR: WaitOnLock: error on wakeup - Aborting this transaction
Next
From: Michael Contzen
Date:
Subject: Numeric and Aggregate: transform node 107