Consolidate connection closure calls

This commit is contained in:
Ian Barwick
2018-03-21 12:35:35 +09:00
committed by Ian Barwick
parent 71b13f5307
commit a403da67bc
4 changed files with 60 additions and 59 deletions

View File

@@ -353,6 +353,7 @@ PGconn *get_primary_connection(PGconn *standby_conn, int *primary_id, char *p
PGconn *get_primary_connection_quiet(PGconn *standby_conn, int *primary_id, char *primary_conninfo_out);
bool is_superuser_connection(PGconn *conn, t_connection_user *userinfo);
void close_connection(PGconn **conn);
/* conninfo manipulation functions */
bool get_conninfo_value(const char *conninfo, const char *keyword, char *output);