mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
is_downstream_node_attached(): avoid false negative
If the provided connection does not have sufficient permission to read "pg_stat_replication.state", and there is an entry for the node in "pg_stat_replication", assume it's connected. Finer-grained detection requires additional user permissions, nothing we can do about that.
This commit is contained in:
@@ -454,6 +454,7 @@ TimeLineHistoryEntry *get_timeline_history(PGconn *repl_conn, TimeLineID tli);
|
||||
/* user/role information functions */
|
||||
bool can_execute_pg_promote(PGconn *conn);
|
||||
bool connection_has_pg_settings(PGconn *conn);
|
||||
bool connection_has_pg_monitor_role(PGconn *conn, const char *subrole);
|
||||
bool is_replication_role(PGconn *conn, char *rolname);
|
||||
bool is_superuser_connection(PGconn *conn, t_connection_user *userinfo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user