pgsql: Make crash recovery ignore restore_command and recovery_end_comm - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: Make crash recovery ignore restore_command and recovery_end_comm
Date
Msg-id E1iIokR-0008QJ-L2@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: Make crash recovery ignore restore_command and recovery_end_comm
Next
From: Noah Misch
Date:
Subject: pgsql: AIX: Stop adding option -qsrcmsg.