Add "witness register" functionality

This commit is contained in:
Ian Barwick
2017-11-13 14:53:12 +09:00
parent 7fffe3ed96
commit a6cc4d80f0
13 changed files with 397 additions and 23 deletions

View File

@@ -806,7 +806,6 @@ do_standby_register(void)
}
}
if (PQstatus(conn) == CONNECTION_OK)
{
check_recovery_type(conn);
@@ -838,7 +837,7 @@ do_standby_register(void)
if (PQstatus(primary_conn) != CONNECTION_OK)
{
log_error(_("unable to connect to the primary database"));
log_hint(_("a primary must be configured before registering a standby"));
log_hint(_("a primary node must be configured before registering a standby node"));
exit(ERR_BAD_CONFIG);
}