"standby switchover": actually abort if SSH connection not possible

This commit is contained in:
Ian Barwick
2017-08-17 15:05:04 +09:00
committed by Ian Barwick
parent 9690aeb030
commit 19684f965b

View File

@@ -4973,7 +4973,9 @@ do_standby_switchover(void)
if (r != 0)
{
log_err(_("unable to connect via SSH to host %s, user %s\n"), remote_host, runtime_options.remote_user);
log_err(_("unable to connect via SSH to host \"%s\", user \"%s\"\n"),
remote_host, runtime_options.remote_user);
exit(ERR_BAD_CONFIG);
}
if (get_pg_setting(remote_conn, "data_directory", remote_data_directory) == false)