From 13b89f96d07ad3da67b57f66c134c3609bd3e98f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 4 Feb 2019 09:28:17 +0100 Subject: [PATCH] Allow some recovery parameters to be changed with reload Change archive_cleanup_command promote_trigger_file recovery_end_command recovery_min_apply_delay from PGC_POSTMASTER to PGC_SIGHUP. This did not require any further changes. Reviewed-by: Michael Paquier Discussion: https://www.postgresql.org/message-id/flat/ca28011a-cfaa-565c-d622-c1907c33ecf7%402ndquadrant.com --- doc/src/sgml/config.sgml | 21 +++++++++++++++---- src/backend/utils/misc/guc.c | 8 +++---- src/backend/utils/misc/postgresql.conf.sample | 4 ---- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 9b7a7388d5..7e208a4b81 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -3081,8 +3081,7 @@ include_dir 'conf.d' This section describes the settings that apply only for the duration of the recovery. They must be reset for any subsequent recovery you wish to - perform. They can only be set at server start and cannot be changed once - recovery has begun. + perform. @@ -3161,6 +3160,10 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows database server shutdown) or an error by the shell (such as command not found), then recovery will abort and the server will not start up. + + + This parameter can only be set at server start. + @@ -3202,6 +3205,10 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows terminated by a signal or an error by the shell (such as command not found), a fatal error will be raised. + + This parameter can only be set in the postgresql.conf + file or on the server command line. + @@ -3227,6 +3234,10 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows signal or an error by the shell (such as command not found), the database will not proceed with startup. + + This parameter can only be set in the postgresql.conf + file or on the server command line. + @@ -3863,7 +3874,8 @@ ANY num_sync ( num_sync (