Re: BUG #1512: Assertion failure (lock.c:1537) with SELECT FOR UPDATE and savepoints - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1512: Assertion failure (lock.c:1537) with SELECT FOR UPDATE and savepoints
Date
Msg-id 22543.1109712057@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #1512: Assertion failure (lock.c:1537) with SELECT FOR UPDATE and savepoints  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
I wrote:
> ISTM we have to fix RemoveFromWaitQueue to remove the proclock object
> immediately if its count has gone to zero.  It should be impossible
> for the lock's count to have gone to zero (that would imply no one
> else holds the lock, so we couldn't be waiting on it) so an Assert
> is sufficient for that part.

I've applied a patch along these lines; it seems to make the problem
go away.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: bcmwltry.exe, libeay32.dll
Next
From: "Chris Hutchinson"
Date:
Subject: BUG #1513: pg_dump -t doesn't include sequences for pre-v8-created tables