Re: An example of bugs for Hot Standby - Mailing list pgsql-hackers

From Andres Freund
Subject Re: An example of bugs for Hot Standby
Date
Msg-id 201001201148.50054.andres@anarazel.de
Whole thread Raw
In response to Re: An example of bugs for Hot Standby  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On Wednesday 20 January 2010 11:33:05 Simon Riggs wrote:
> On Wed, 2010-01-20 at 11:04 +0100, Andres Freund wrote:
> > On Wednesday 20 January 2010 10:52:24 Simon Riggs wrote:
> > > On Wed, 2010-01-20 at 10:45 +0100, Andres Freund wrote:
> > > > LWLockAcquire
> > > 
> > > I'm using spinlocks, not lwlocks.
> > 
> > CancelDBBackends which is used in SendRecoveryConflictWithBufferPin which
> > in turn used by CheckStandbyTimeout triggered by SIGALRM acquires the
> > lwlock.
> 
> Those are used in similar ways to deadlock detection.
But only if 
ImmediateInterruptOK && InterruptHoldoffCount == 0 && CritSectionCount == 0 - 
which is not the case with HoldingBufferPinThatDelaysRecovery.

Andres


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: An example of bugs for Hot Standby
Next
From: Simon Riggs
Date:
Subject: Re: Small locking bugs in hs