pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make the standby server promptly handle interrupt signals.
Date: Mon, 16 Nov 2020 09:28:27 +0000
Message-ID: <E1keaoF-0002C4-Li@gemulon.postgresql.org> (raw)

Make the standby server promptly handle interrupt signals.

This commit changes the startup process in the standby server so that
it handles the interrupt signals after waiting for wal_retrieve_retry_interval
on the latch and resetting it, before entering another wait on the latch.
This change causes the standby server to promptly handle interrupt signals.

Otherwise, previously, there was the case where the standby needs to
wait extra five seconds to shutdown when the shutdown request arrived
while the startup process was waiting for wal_retrieve_retry_interval
on the latch.

Author: Fujii Masao, but implementation idea is from Soumyadeep Chakraborty
Reviewed-by: Soumyadeep Chakraborty
Discussion: https://postgr.es/m/9d7e6ab0-8a53-ddb9-63cd-289bcb25fe0e@oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2945a488a3426838223a637cd326ec71fff61954

Modified Files
--------------
src/backend/access/transam/xlog.c | 3 +++
1 file changed, 3 insertions(+)



view thread (6+ messages)  latest in thread

Message-ID: <E1keaoF-0002C4-Li@gemulon.postgresql.org>
Permalink:  ../E1keaoF-0002C4-Li@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1keaoF-0002C4-Li@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: Make the standby server promptly handle interrupt signals.
  In-Reply-To: <E1keaoF-0002C4-Li@gemulon.postgresql.org>
  References: <E1keaoF-0002C4-Li@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox