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 crash recovery ignore restore_command and recovery_end_comm
Date: Fri, 11 Oct 2019 06:49:59 +0000
Message-ID: <E1iIokR-0008QJ-L2@gemulon.postgresql.org> (raw)

Make crash recovery ignore restore_command and recovery_end_command settings.

In v11 or before, those settings could not take effect in crash recovery
because they are specified in recovery.conf and crash recovery always
starts without recovery.conf. But commit 2dedf4d9a8 integrated
recovery.conf into postgresql.conf and which unexpectedly allowed
those settings to take effect even in crash recovery. This is definitely
not good behavior.

To fix the issue, this commit makes crash recovery always ignore
restore_command and recovery_end_command settings.

Back-patch to v12 where the issue was added.

Author: Fujii Masao
Reviewed-by: Peter Eisentraut
Discussion: https://postgr.es/m/e445616d-023e-a268-8aa1-67b8b335340c@pgmasters.net

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/20961ceaf0426c6fba40bb422cf111f704a00058

Modified Files
--------------
src/backend/access/transam/xlog.c        | 6 +++---
src/backend/access/transam/xlogarchive.c | 7 +++++++
2 files changed, 10 insertions(+), 3 deletions(-)



view thread (2+ messages)

Message-ID: <E1iIokR-0008QJ-L2@gemulon.postgresql.org>
Permalink:  ../E1iIokR-0008QJ-L2@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iIokR-0008QJ-L2@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 crash recovery ignore restore_command and recovery_end_comm
  In-Reply-To: <E1iIokR-0008QJ-L2@gemulon.postgresql.org>
  References: <E1iIokR-0008QJ-L2@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