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

From: Vadim Mikheev <vadim(at)krs(dot)ru>
To: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Cc: hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] ERROR: WaitOnLock: error on wakeup - Aborting this transaction
Date: 1999-05-21 11:20:03
Message-ID: 37454163.921BF606@krs.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Contzen 1999-05-21 12:45:43 Numeric and Aggregate: transform node 107
Previous Message Tatsuo Ishii 1999-05-21 09:58:18 ERROR: WaitOnLock: error on wakeup - Aborting this transaction