1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Add libpq connection timeout parameter.

Denis A Ustimenko
This commit is contained in:
Bruce Momjian
2002-08-17 12:33:18 +00:00
parent b7214a877c
commit f0ed4311b6
4 changed files with 97 additions and 9 deletions

View File

@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq-int.h,v 1.52 2002/07/20 05:43:31 momjian Exp $
* $Id: libpq-int.h,v 1.53 2002/08/17 12:33:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -286,6 +286,8 @@ struct pg_conn
PQExpBufferData workBuffer; /* expansible string */
int client_encoding; /* encoding id */
char *connect_timeout;
};
/* String descriptions of the ExecStatusTypes.
@@ -332,6 +334,7 @@ extern int pqReadData(PGconn *conn);
extern int pqFlush(PGconn *conn);
extern int pqSendSome(PGconn *conn);
extern int pqWait(int forRead, int forWrite, PGconn *conn);
extern int pqWaitTimed(int forRead, int forWrite, PGconn *conn, const struct timeval* timeout);
extern int pqReadReady(PGconn *conn);
extern int pqWriteReady(PGconn *conn);