Optionally retrieve server_version string as well

In a couple of places we'll need to report the human-readable
version number
This commit is contained in:
Ian Barwick
2014-12-29 15:52:53 +09:00
parent f94626bf7b
commit 8b69b1e16f
4 changed files with 27 additions and 17 deletions

View File

@@ -30,7 +30,7 @@ PGconn *establish_db_connection_by_params(const char *keywords[],
int is_standby(PGconn *conn);
int is_witness(PGconn *conn, char *schema, char *cluster, int node_id);
bool is_pgup(PGconn *conn, int timeout);
int get_server_version_num(PGconn *conn);
int get_server_version(PGconn *conn, char *server_version);
int guc_set(PGconn *conn, const char *parameter, const char *op,
const char *value);
int guc_set_typed(PGconn *conn, const char *parameter, const char *op,