Re: WaitOnLock error - what does this mean?

From: "Robert B(dot) Easter" <reaster(at)comptechnews(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Robert B(dot) Easter" <reaster(at)comptechnews(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: WaitOnLock error - what does this mean?
Date: 2000-07-24 04:57:01
Message-ID: 00072401145402.00253@comptechnews
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, 23 Jul 2000, Tom Lane wrote:
> "Robert B. Easter" <reaster(at)comptechnews(dot)com> writes:
> > ERROR: WaitOnLock: error on wakeup - Aborting this transaction
>
> Is there any NOTICE coming out right before that?

Yes. After sending my email to this list, I kept trying the same thing again.
After a few more tries, my php script managed to do an insert but when I
looked at the inserts running from bash I saw both the NOTICE and ERROR. My php
script only reports ERRORs when a query fails (not sure if php has any ability
to report notices). Its random which inserts will be the cause of deadlock. I
guess I'll just have to make the script output a more user-friendly message
like: system is too busy, please try again later. Is my database design flawed
if this occurs?

>
> 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...
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robert B. Easter 2000-07-24 05:15:00 Is there any way to speed up PL/TCL functions?
Previous Message Dave Burbidge 2000-07-24 04:27:47 MS SQL <=> Postgresql