summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/libpq-fe.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-05-23 22:13:19 +0000
committerBruce Momjian <bruce@momjian.us>2006-05-23 22:13:19 +0000
commitc1d4551ae1d63cfbff5db7b5fdec94f0357dff7b (patch)
tree801281906612d1114eb992d19efa48547a497011 /src/interfaces/libpq/libpq-fe.h
parent7f52e0c50e4d3e091fb3db2432a86249029af3d4 (diff)
downloadpostgresql-c1d4551ae1d63cfbff5db7b5fdec94f0357dff7b.tar.gz
Add PQisthreadsafe() to libpq, to allow library applications to query
the thread-safety status of the library.
Diffstat (limited to 'src/interfaces/libpq/libpq-fe.h')
-rw-r--r--src/interfaces/libpq/libpq-fe.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interfaces/libpq/libpq-fe.h b/src/interfaces/libpq/libpq-fe.h
index c309448bac..3b824efe85 100644
--- a/src/interfaces/libpq/libpq-fe.h
+++ b/src/interfaces/libpq/libpq-fe.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-fe.h,v 1.128 2006/05/21 20:19:23 tgl Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-fe.h,v 1.129 2006/05/23 22:13:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -366,6 +366,7 @@ extern int PQendcopy(PGconn *conn);
/* Set blocking/nonblocking connection to the backend */
extern int PQsetnonblocking(PGconn *conn, int arg);
extern int PQisnonblocking(const PGconn *conn);
+extern int PQisthreadsafe(void);
/* Force the write buffer to be written (or at least try) */
extern int PQflush(PGconn *conn);