From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Revert "Get rid of the dedicated latch for signaling the startup
Date: Thu, 17 Dec 2020 09:09:39 +0000
Message-ID: <E1kppI3-0003us-AI@gemulon.postgresql.org> (raw)
Revert "Get rid of the dedicated latch for signaling the startup process".
Revert ac22929a26, as well as the followup fix 113d3591b8. Because it broke
the assumption that the startup process waiting for the recovery conflict
on buffer pin should be waken up only by buffer unpin or the timeout enabled
in ResolveRecoveryConflictWithBufferPin(). It caused, for example,
SIGHUP signal handler or walreceiver process to wake that startup process
up unnecessarily frequently.
Additionally, add the comments about why that dedicated latch that
the reverted patch tried to get rid of should not be removed.
Thanks to Kyotaro Horiguchi for the discussion.
Author: Fujii Masao
Discussion: https://postgr.es/m/d8c0c608-021b-3c73-fffd-3240829ee986@oss.nttdata.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/00f690a239932e477f25120d19b08aacdc30deb7
Modified Files
--------------
src/backend/access/transam/xlog.c | 40 ++++++++++++++++++++++++---------------
src/backend/postmaster/startup.c | 24 ++++++++++++++++++-----
src/backend/storage/ipc/standby.c | 9 ++++++++-
3 files changed, 52 insertions(+), 21 deletions(-)
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: Revert "Get rid of the dedicated latch for signaling the startup
In-Reply-To: <E1kppI3-0003us-AI@gemulon.postgresql.org>
References: <E1kppI3-0003us-AI@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