Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit44aba28

Browse files
committed
PGRES_POLLING_ACTIVE is unused, keep for backward compatibility.
Lennert Buytenhek
1 parentd7f1070 commit44aba28

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-
casePGRES_POLLING_ACTIVE:
1210-
break;
1211-
12121209
casePGRES_POLLING_OK:
12131210
return1;/* success! */
12141211

@@ -1926,9 +1923,6 @@ PQsetenv(PGconn *conn)
19261923
*/
19271924
switch (flag)
19281925
{
1929-
casePGRES_POLLING_ACTIVE:
1930-
break;
1931-
19321926
casePGRES_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
typedefenum

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp