pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move StartupCLOG() calls to just after we initialize ShmemVariab
Date: Wed, 27 Jan 2021 17:24:05 +0000
Message-ID: <E1l4oY1-0006Gh-07@gemulon.postgresql.org> (raw)

Move StartupCLOG() calls to just after we initialize ShmemVariableCache.

Previously, the hot_standby=off code path did this at end of recovery,
while the hot_standby=on code path did it at the beginning of recovery.
It's better to do this in only one place because (a) it's simpler,
(b) StartupCLOG() is trivial so trying to postpone the work isn't
useful, and (c) this will make it possible to simplify some other
logic.

Patch by me, reviewed by Heikki Linnakangas.

Discussion: http://postgr.es/m/CA+TgmoZYig9+AQodhF5sRXuKkJ=RgFDugLr3XX_dz_F-p=TwTg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1f113abdf87cd085dee3927960bb4f70442b7250

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



Message-ID: <E1l4oY1-0006Gh-07@gemulon.postgresql.org>
Permalink:  ../E1l4oY1-0006Gh-07@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1l4oY1-0006Gh-07@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: rhaas@postgresql.org
  Subject: Re: pgsql: Move StartupCLOG() calls to just after we initialize ShmemVariab
  In-Reply-To: <E1l4oY1-0006Gh-07@gemulon.postgresql.org>
  References: <E1l4oY1-0006Gh-07@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