Re: Allow interrupts on waiting standby - Mailing list pgsql-hackers

From Tsunakawa, Takayuki
Subject Re: Allow interrupts on waiting standby
Date
Msg-id 0A3221C70F24FB45833433255569204D1F6BD26E@G01JPEXMBYT05
Whole thread Raw
In response to [HACKERS] Allow interrupts on waiting standby  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
(4) standby.c
> The latch is not reset when the wait timed out.  The next WaitLatch() would
> return immediately.

Sorry, let me withdraw this.  This is my misunderstanding.

OTOH, when is the latch reset before the wait?  Is there an assumption that MyLatch has been in reset state since it
wasinitialized?
 
Is it safe to use MyLatch here, not the special latch like something used in xlog.c?


Regards
Takayuki Tsunakawa


pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Logical decoding on standby
Next
From: Craig Ringer
Date:
Subject: Re: Logical decoding on standby