standby clone: --recovery-conf-only expects the standby to be registered

Note this in the documentation, and add a HINT about registering it
if the standby record is not available.

Related to GitHub #438.
This commit is contained in:
Ian Barwick
2018-05-29 11:52:57 +09:00
parent 3dba8336e9
commit edceb32ccb
2 changed files with 8 additions and 5 deletions

View File

@@ -938,7 +938,6 @@ _do_create_recovery_conf(void)
log_detail("%s", PQerrorMessage(source_conn));
}
exit(ERR_BAD_CONFIG);
}
@@ -955,7 +954,10 @@ _do_create_recovery_conf(void)
{
log_detail("%s", PQerrorMessage(source_conn));
}
else
{
log_hint(_("standby must be registered before a new recovery.conf file can be created"));
}
exit(ERR_BAD_CONFIG);
}