Re: WaitOnLock error - what does this mean? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: WaitOnLock error - what does this mean?
Date
Msg-id 200007271858.OAA27159@candle.pha.pa.us
Whole thread Raw
In response to Re: WaitOnLock error - what does this mean?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> "Robert B. Easter" <reaster@comptechnews.com> writes:
> > ERROR: WaitOnLock: error on wakeup - Aborting this transaction
>
> Is there any NOTICE coming out right before that?
>
> For example:
>
> psql #1:
>
> begin;
> lock table tenk1;
>
> psql #2:
>
> begin;
> lock table tenk2;
> lock table tenk1;
>
> <waits>
>
> psql #1:
>
> lock table tenk2;
>
> NOTICE:  Deadlock detected -- See the lock(l) manual page for a possible cause.
> ERROR:  WaitOnLock: error on wakeup - Aborting this transaction
>
>
> Not sure why this isn't just one ERROR, since anyone using a client that
> discards NOTICEs is going to be confused...

Seems the code wants to throw the NOTICE, then keep going, then throw
the error later.  I don't know who did this, but is was not me.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: Paul Caskey
Date:
Subject: Re: 4 billion record limit?
Next
From: Bruce Momjian
Date:
Subject: Re: WaitOnLock error - what does this mean?