mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 15:16:29 +00:00
pgsql conventions (tabs, four-spaces-wide, etc) applied all around. Also tried to fix some very tiny capitalization errors, auto-fill problems, and some inter-block vertical whitespacing issues. Long strings in repmgr.c were left intact, though. They are rather numerous and are less of a problem than tiny bits of function calls and comments wrapping over a line; the latter kind of problem has been mostly fixed. Signed-off-by: Dan Farina <drfarina@acm.org> Signed-off-by: Peter van Hardenberg <pvh@heroku.com>
15 lines
443 B
C
15 lines
443 B
C
/*
|
|
* dbutils.h
|
|
* Copyright (c) 2ndQuadrant, 2010
|
|
*
|
|
*/
|
|
|
|
PGconn *establishDBConnection(const char *conninfo, const bool exit_on_error);
|
|
bool is_standby(PGconn *conn);
|
|
char *pg_version(PGconn *conn);
|
|
bool guc_setted(PGconn *conn, const char *parameter, const char *op,
|
|
const char *value);
|
|
const char *get_cluster_size(PGconn *conn);
|
|
PGconn * getMasterConnection(PGconn *standby_conn, int id, char *cluster,
|
|
int *master_id);
|