From 99550b91bd4e6781bd2d7f7b22dca7adc9676869 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Fri, 22 Feb 2019 09:59:29 +0900 Subject: [PATCH] standby register: warn if standby is running and connection params provided Addresses GitHub #552. --- repmgr-action-standby.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index 07b1780b..1394eac6 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -1325,6 +1325,11 @@ do_standby_register(void) /* connection OK - check this is actually a standby */ else { + if (runtime_options.connection_param_provided) + { + log_warning(_("database connection parameters not required when the standby to be registered is running")); + log_detail(_("repmgr uses the \"conninfo\" parameter in \"repmgr.conf\" to connect to the standby")); + } check_recovery_type(conn); }