pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Pause recovery for insufficient parameter settings
Date: Mon, 18 Jan 2021 08:22:41 +0000
Message-ID: <E1l1Po9-0007DP-P5@gemulon.postgresql.org> (raw)

Pause recovery for insufficient parameter settings

When certain parameters are changed on a physical replication primary,
this is communicated to standbys using the XLOG_PARAMETER_CHANGE WAL
record.  The standby then checks whether its own settings are at least
as big as the ones on the primary.  If not, the standby shuts down
with a fatal error.

This patch changes this behavior for hot standbys to pause recovery at
that point instead.  That allows read traffic on the standby to
continue while database administrators figure out next steps.  When
recovery is unpaused, the server shuts down (as before).  The idea is
to fix the parameters while recovery is paused and then restart when
there is a maintenance window.

Reviewed-by: Sergei Kornilov <sk@zsrv.org>
Discussion: https://www.postgresql.org/message-id/flat/4ad69a4c-cc9b-0dfe-0352-8b1b0cd36c7b@2ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/15251c0a60be76eedee74ac0e94b433f9acca5af

Modified Files
--------------
doc/src/sgml/high-availability.sgml | 51 ++++++++++++++++++++++++--------
src/backend/access/transam/xlog.c   | 59 +++++++++++++++++++++++++++++++++----
2 files changed, 93 insertions(+), 17 deletions(-)



Message-ID: <E1l1Po9-0007DP-P5@gemulon.postgresql.org>
Permalink:  ../E1l1Po9-0007DP-P5@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1l1Po9-0007DP-P5@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: peter@eisentraut.org
  Subject: Re: pgsql: Pause recovery for insufficient parameter settings
  In-Reply-To: <E1l1Po9-0007DP-P5@gemulon.postgresql.org>
  References: <E1l1Po9-0007DP-P5@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