Improve parameter validation, logging, and error

handling in repmgrd
This commit is contained in:
Greg Smith
2011-02-24 18:13:16 -05:00
parent c7b62003b2
commit f928edf897
4 changed files with 50 additions and 25 deletions

View File

@@ -343,6 +343,7 @@ do_master_register(void)
}
/* Check we are a master */
log_info(_("%s connected to master, checking its state\n"), progname);
if (is_standby(conn))
{
log_err(_("%s needs master to be PostgreSQL 9.0 or better\n"), progname);