summaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorRobert Haas2013-01-23 15:58:04 +0000
committerRobert Haas2013-01-23 16:01:20 +0000
commitac2e9673622591319d107272747a02d2c7f343bd (patch)
treefd45b6ab88117c071bb8a8f4e11e07ba5567bf5e /src/interfaces
parent0ac5ad5134f2769ccbaefec73844f8504c4d6182 (diff)
pg_isready
New command-line utility to test whether a server is ready to accept connections. Phil Sorber, reviewed by Michael Paquier and Peter Eisentraut
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/libpq/libpq-fe.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interfaces/libpq/libpq-fe.h b/src/interfaces/libpq/libpq-fe.h
index 895afbcc71..e0f4bc7c49 100644
--- a/src/interfaces/libpq/libpq-fe.h
+++ b/src/interfaces/libpq/libpq-fe.h
@@ -110,6 +110,11 @@ typedef enum
PQERRORS_VERBOSE /* all the facts, ma'am */
} PGVerbosity;
+/*
+ * PGPing - The ordering of this enum should not be altered because the
+ * values are exposed externally via pg_isready.
+ */
+
typedef enum
{
PQPING_OK, /* server is accepting connections */