Re: WaitOnLock - Mailing list pgsql-hackers

From Tom Lane
Subject Re: WaitOnLock
Date
Msg-id 3478.970675040@sss.pgh.pa.us
Whole thread Raw
In response to WaitOnLock  (darcy@druid.net (D'Arcy J.M. Cain))
List pgsql-hackers
darcy@druid.net (D'Arcy J.M. Cain) writes:
> WaitOnLock: error on wakeup - Aborting this transaction

What happens to NOTICEs in your application?

For some odd reason, deadlock reports come out as a NOTICE followed by
this error message; if you are bit-bucketing NOTICEs then you may well
be confused.


Window 1:

regression=# begin;
BEGIN
regression=# lock int4_tbl;
LOCK TABLE

Window 2:

regression=# begin;
BEGIN
regression=# lock int8_tbl;
LOCK TABLE
regression=# lock int4_tbl;
<< waits >>

Window 1:

regression=# lock int8_tbl;
NOTICE:  Deadlock detected -- See the lock(l) manual page for a possible cause.
ERROR:  WaitOnLock: error on wakeup - Aborting this transaction

        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: yacc guru needed
Next
From: Tom Lane
Date:
Subject: Re: I want tips for debugging deadlocks