summaryrefslogtreecommitdiffstats
path: root/pg.h
diff options
context:
space:
mode:
Diffstat (limited to 'pg.h')
-rw-r--r--pg.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/pg.h b/pg.h
index e368351..2ea852b 100644
--- a/pg.h
+++ b/pg.h
@@ -11,4 +11,15 @@ PGresult *pg_locks(PGconn *, int);
PGresult *pg_processes(PGconn *);
PGresult *pg_query(PGconn *, int);
+enum BackendState
+{
+ STATE_UNDEFINED,
+ STATE_IDLE,
+ STATE_RUNNING,
+ STATE_IDLEINTRANSACTION,
+ STATE_FASTPATH,
+ STATE_IDLEINTRANSACTION_ABORTED,
+ STATE_DISABLED
+};
+
#endif /* _PG_H_ */