Add a hint if 'standby register' fails due to insert error

This commit is contained in:
Ian Barwick
2015-03-19 23:01:31 +09:00
parent 46a3082055
commit 9a3196b671

View File

@@ -878,6 +878,11 @@ do_standby_register(void)
if(record_created == false)
{
if(!runtime_options.force)
{
log_notice(_("HINT: use option -F/--force to overwrite an existing node record\n"));
}
PQfinish(master_conn);
PQfinish(conn);
exit(ERR_BAD_CONFIG);