Re: SR standby hangs - Mailing list pgsql-hackers

From Tom Lane
Subject Re: SR standby hangs
Date
Msg-id 13876.1298058612@sss.pgh.pa.us
Whole thread Raw
In response to Re: SR standby hangs  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: SR standby hangs
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Feb 18, 2011 at 2:35 PM, Andrew Dunstan <andrew@dunslane.net> wrote:
>> It's not running HS, so there's no query to wait on.

> That seems to imply that recovery has leaked a buffer pin.

No, because then the sanity check in LockBufferForCleanup would have
fired:
/* There should be exactly one local pin */if (PrivateRefCount[buffer - 1] != 1)    elog(ERROR, "incorrect local pin
count:%d",         PrivateRefCount[buffer - 1]);
 

Some sort of deadly embrace with the bgwriter, maybe?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: WIP - Add ability to constrain backend temporary file space
Next
From: Alvaro Herrera
Date:
Subject: Re: Snapshot synchronization, again...