PGRES_POLLING_ACTIVE is unused, keep for backward compatibility.
authorBruce Momjian <bruce@momjian.us>
Thu, 20 Mar 2003 06:23:30 +0000 (06:23 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 20 Mar 2003 06:23:30 +0000 (06:23 +0000)
Lennert Buytenhek

doc/src/sgml/libpq.sgml
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/libpq-fe.h

index 6e980fcf4cdff1015e4ee10e03886df124d00d14..235a8cbc2e24c73b940c3a81a39020106ef0bf27 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.112 2003/03/13 01:30:28 petere Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.113 2003/03/20 06:23:30 momjian Exp $
 -->
 
  <chapter id="libpq">
@@ -342,9 +342,7 @@ PostgresPollingStatusType PQconnectPoll(PGconn *conn);
   </para>
   <para>
    If <function>PQconnectStart</> succeeds, the next stage is to poll <application>libpq</> so that it may
-   proceed with the connection sequence.  Loop thus: Consider a connection
-   <quote>inactive</quote> by default. If <function>PQconnectPoll</function> last returned <symbol>PGRES_POLLING_ACTIVE</>,
-   consider it <quote>active</quote> instead. If <function>PQconnectPoll(conn)</function> last returned
+   proceed with the connection sequence.  Loop thus: If <function>PQconnectPoll(conn)</function> last returned
    <symbol>PGRES_POLLING_READING</symbol>, perform a <function>select()</> for reading on the socket determined using <function>PQsocket(conn)</function>. If
    it last returned <symbol>PGRES_POLLING_WRITING</symbol>, perform a <function>select()</> for writing on
    that same socket. If you have yet to call <function>PQconnectPoll</function>, i.e., after the call
index ac57659365d8665d86dcad0cd406137995623739..78d0e20188e3f09bba6388fa996ed9158138ae7a 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.227 2003/03/18 22:11:48 petere Exp $
+ *       $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.228 2003/03/20 06:23:30 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1206,9 +1206,6 @@ connectDBComplete(PGconn *conn)
                 */
                switch (flag)
                {
-                       case PGRES_POLLING_ACTIVE:
-                               break;
-
                        case PGRES_POLLING_OK:
                                return 1;               /* success! */
 
@@ -1926,9 +1923,6 @@ PQsetenv(PGconn *conn)
                 */
                switch (flag)
                {
-                       case PGRES_POLLING_ACTIVE:
-                               break;
-
                        case PGRES_POLLING_OK:
                                return true;    /* success! */
 
index f3be00ab6203cc9b1bb0426e96a8f14496f793bf..8114d6e78ea7f72d24fbd5e6ee680a028d1fbaa6 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $Id: libpq-fe.h,v 1.88 2003/03/10 22:28:22 tgl Exp $
+ * $Id: libpq-fe.h,v 1.89 2003/03/20 06:23:30 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -65,7 +65,8 @@ typedef enum
        PGRES_POLLING_READING,          /* These two indicate that one may        */
        PGRES_POLLING_WRITING,          /* use select before polling again.   */
        PGRES_POLLING_OK,
-       PGRES_POLLING_ACTIVE            /* Can call poll function immediately. */
+       PGRES_POLLING_ACTIVE            /*  unused; keep for awhile for
+                                 *  backwards compatibility */
 } PostgresPollingStatusType;
 
 typedef enum