From d19ccf74e896ab6209410c6d27405a970f162b78 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 30 Jan 2020 10:28:48 +0900 Subject: [PATCH] standby switchover: display "shutdown_check_timeout" value in --dry-run mode It's useful to be aware of this setting. --- doc/switchover.xml | 1 + repmgr-action-standby.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/doc/switchover.xml b/doc/switchover.xml index 4da55b48..399729ed 100644 --- a/doc/switchover.xml +++ b/doc/switchover.xml @@ -186,6 +186,7 @@ NOTICE: local node "node2" (ID: 2) will be promoted to primary; current primary "node1" (ID: 1) will be demoted to standby INFO: following shutdown command would be run on node "node1": "pg_ctl -l /var/log/postgresql/startup.log -D '/var/lib/postgresql/data' -m fast -W stop" + INFO: parameter "shutdown_check_timeout" is set to 60 seconds diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index 30df8b94..6687835d 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -4329,6 +4329,9 @@ do_standby_switchover(void) remote_node_record.node_name, shutdown_command); + log_info(_("parameter \"shutdown_check_timeout\" is set to %i seconds"), + config_file_options.shutdown_check_timeout); + clear_node_info_list(&sibling_nodes); key_value_list_free(&remote_config_files);