From b7fd13aed2b11268fee73e719ab55d2d3b810c1e Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Wed, 30 Mar 2016 16:45:47 +0900 Subject: [PATCH] Fix pg_ctl path generation in do_standby_switchover() --- repmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repmgr.c b/repmgr.c index 98304442..1fbd97aa 100644 --- a/repmgr.c +++ b/repmgr.c @@ -2874,8 +2874,8 @@ do_standby_switchover(void) */ maxlen_snprintf(command, - "%s/pg_ctl -D %s -m %s -W stop >/dev/null 2>&1 && echo 1 || echo 0", - pg_bindir, + "%s -D %s -m %s -W stop >/dev/null 2>&1 && echo 1 || echo 0", + make_pg_path("pg_ctl"), remote_data_directory, runtime_options.pg_ctl_mode);