Skip to content

Commit 44aba28

Browse files
committed
PGRES_POLLING_ACTIVE is unused, keep for backward compatibility.
Lennert Buytenhek
1 parent d7f1070 commit 44aba28

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

doc/src/sgml/libpq.sgml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.112 2003/03/13 01:30:28 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.113 2003/03/20 06:23:30 momjian Exp $
33
-->
44

55
<chapter id="libpq">
@@ -342,9 +342,7 @@ PostgresPollingStatusType PQconnectPoll(PGconn *conn);
342342
</para>
343343
<para>
344344
If <function>PQconnectStart</> succeeds, the next stage is to poll <application>libpq</> so that it may
345-
proceed with the connection sequence. Loop thus: Consider a connection
346-
<quote>inactive</quote> by default. If <function>PQconnectPoll</function> last returned <symbol>PGRES_POLLING_ACTIVE</>,
347-
consider it <quote>active</quote> instead. If <function>PQconnectPoll(conn)</function> last returned
345+
proceed with the connection sequence. Loop thus: If <function>PQconnectPoll(conn)</function> last returned
348346
<symbol>PGRES_POLLING_READING</symbol>, perform a <function>select()</> for reading on the socket determined using <function>PQsocket(conn)</function>. If
349347
it last returned <symbol>PGRES_POLLING_WRITING</symbol>, perform a <function>select()</> for writing on
350348
that same socket. If you have yet to call <function>PQconnectPoll</function>, i.e., after the call

src/interfaces/libpq/fe-connect.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.227 2003/03/18 22:11:48 petere Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.228 2003/03/20 06:23:30 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1206,9 +1206,6 @@ connectDBComplete(PGconn *conn)
12061206
*/
12071207
switch (flag)
12081208
{
1209-
case PGRES_POLLING_ACTIVE:
1210-
break;
1211-
12121209
case PGRES_POLLING_OK:
12131210
return 1; /* success! */
12141211

@@ -1926,9 +1923,6 @@ PQsetenv(PGconn *conn)
19261923
*/
19271924
switch (flag)
19281925
{
1929-
case PGRES_POLLING_ACTIVE:
1930-
break;
1931-
19321926
case PGRES_POLLING_OK:
19331927
return true; /* success! */
19341928

src/interfaces/libpq/libpq-fe.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: libpq-fe.h,v 1.88 2003/03/10 22:28:22 tgl Exp $
10+
* $Id: libpq-fe.h,v 1.89 2003/03/20 06:23:30 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -65,7 +65,8 @@ typedef enum
6565
PGRES_POLLING_READING, /* These two indicate that one may */
6666
PGRES_POLLING_WRITING, /* use select before polling again. */
6767
PGRES_POLLING_OK,
68-
PGRES_POLLING_ACTIVE /* Can call poll function immediately. */
68+
PGRES_POLLING_ACTIVE /* unused; keep for awhile for
69+
* backwards compatibility */
6970
} PostgresPollingStatusType;
7071

7172
typedef enum

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy