From e51870b5044b5510c9aeb0f40998348cdd769acb Mon Sep 17 00:00:00 2001 From: Jaime Casanova Date: Fri, 15 Jun 2012 13:51:45 -0500 Subject: [PATCH] Force to enter a password for the superuser in the witness, this is in case we need to send a password to connect as stated in master's pg_hba.conf. --- repmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repmgr.c b/repmgr.c index a7960f77..8075a9c2 100644 --- a/repmgr.c +++ b/repmgr.c @@ -1532,7 +1532,7 @@ do_witness_create(void) /* Create the cluster for witness */ /* We assume the pg_ctl script is in the PATH */ - sprintf(script, "pg_ctl -D %s init", runtime_options.dest_dir); + sprintf(script, "pg_ctl -D %s init -o \"-W\"", runtime_options.dest_dir); log_info("Initialize cluster for witness: %s.\n", script); r = system(script);