Re: Sync Rep v19 - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Sync Rep v19
Date
Msg-id AANLkTikfKNvSwunOf2Nyk+vdTS4H3qFWz=BM5pTAC1kj@mail.gmail.com
Whole thread Raw
In response to Re: Sync Rep v19  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Sync Rep v19
List pgsql-hackers
On Fri, Mar 4, 2011 at 7:01 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
>> Anyway, this is code in the interrupt handler and only gets executed
>> when we receive SIGTERM for a fast shutdown.
>
> I trust it's not getting *directly* executed from the interrupt handler,
> at least not without ImmediateInterruptOK.

Yes, the backend waits for replication while cancel/die interrupt is
being blocked, i.e., InterruptHoldoffCount > 0. So SIGTERM doesn't
lead the waiting backend to there directly. The backend reaches there
after returning the result.

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


pgsql-hackers by date:

Previous
From: Robert Treat
Date:
Subject: why is max standby delay only 35 minutes?
Next
From: Fujii Masao
Date:
Subject: Re: Sync Rep v19