pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Make crash recovery ignore restore_command and recovery_end_comm 2+ messages / 1 participants [nested] [flat]
* pgsql: Make crash recovery ignore restore_command and recovery_end_comm @ 2019-10-11 06:49 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Fujii Masao @ 2019-10-11 06:49 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/fcf7f8d9242da9eb07e8a8de3d0d7fa3fd51ba1a Modified Files -------------- src/backend/access/transam/xlog.c | 6 +++--- src/backend/access/transam/xlogarchive.c | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Make crash recovery ignore restore_command and recovery_end_comm @ 2019-10-11 06:49 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Fujii Masao @ 2019-10-11 06:49 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-10-11 06:49 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-10-11 06:49 pgsql: Make crash recovery ignore restore_command and recovery_end_comm Fujii Masao <fujii@postgresql.org> 2019-10-11 06:49 pgsql: Make crash recovery ignore restore_command and recovery_end_comm Fujii Masao <fujii@postgresql.org>
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