repmgr standby promote: suppress master database connection error message

Otherwise the first line of output is an ERROR, which is confusing,
even though it's expected.
This commit is contained in:
Ian Barwick
2017-06-21 13:21:44 +09:00
parent 0c531e07e7
commit 6cdf73b4cb
3 changed files with 29 additions and 4 deletions

View File

@@ -152,6 +152,7 @@ PGconn *establish_master_db_connection(PGconn *conn,
const bool exit_on_error);
PGconn *get_master_connection(PGconn *standby_conn, int *master_id, char *master_conninfo_out);
PGconn *get_master_connection_quiet(PGconn *standby_conn, int *master_id, char *master_conninfo_out);
bool is_superuser_connection(PGconn *conn, t_connection_user *userinfo);