Re: and waiting - Mailing list pgsql-hackers

From Tom Lane
Subject Re: and waiting
Date
Msg-id 24901.1201991330@sss.pgh.pa.us
Whole thread Raw
In response to Re: and waiting  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: and waiting  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
List pgsql-hackers
I wrote:
> "Gurjeet Singh" <singh.gurjeet@gmail.com> writes:
>> I saw a strange behaviour on one of the production boxes. The
>> pg_stat_activity shows a process as <IDLE> and yet 'waiting' !!! On top of
>> it (understandably, since its IDLE), there are no entries for this pid in
>> pg_locks!

> Hmm, I can reproduce something like this by aborting a wait for lock.
> It seems the problem is that WaitOnLock() is ignoring its own good
> advice, assuming that it can do cleanup work after waiting.

I've committed a fix for this.  (Too late for 8.3.0, unfortunately.)
        regards, tom lane


pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: Truncate Triggers
Next
From: Tom Lane
Date:
Subject: Re: Truncate Triggers