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.
This commit is contained in:
Jaime Casanova
2012-06-15 13:51:45 -05:00
parent 5651720560
commit e51870b504

View File

@@ -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);