Re: An example of bugs for Hot Standby

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: An example of bugs for Hot Standby
Дата
Msg-id 201001201148.50054.andres@anarazel.de
обсуждение исходный текст
Ответ на Re: An example of bugs for Hot Standby  (Simon Riggs <simon@2ndQuadrant.com>)
Список 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 по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: An example of bugs for Hot Standby
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Small locking bugs in hs