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

Commitc9cf982

Browse files
committed
Enable IPv6 libpq 'hostaddr' addresses. Update docs.
1 parent939a59f commitc9cf982

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

‎doc/src/sgml/libpq.sgml

Lines changed: 5 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.103 2002/12/13 05:49:10 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.104 2003/01/06 22:48:16 momjian Exp $
33
-->
44

55
<chapter id="libpq">
@@ -110,14 +110,15 @@ PGconn *PQconnectdb(const char *conninfo)
110110
<listitem>
111111
<para>
112112
IP address of host to connect to. This should be in standard
113-
numbers-and-dots form, as used by the BSD functions <function>inet_aton</> et al. If
114-
a nonzero-length string is specified, TCP/IP communication is used.
113+
IPv4 address format, e.g. <literal>172.28.40.9</>. If your machine
114+
supports IPv6, you can also use those addresses. If a nonzero-length
115+
string is specified, TCP/IP communication is used.
115116
</para>
116117
<para>
117118
Using <literal>hostaddr</> instead of host allows the application to avoid a host
118119
name look-up, which may be important in applications with time
119120
constraints. However, Kerberos authentication requires the host
120-
name. The following therefore applies. If host is specified without
121+
name. The following therefore applies: If host is specified without
121122
<literal>hostaddr</>, a host name lookup is forced. If <literal>hostaddr</> is specified without
122123
host, the value for <literal>hostaddr</> gives the remote address; if Kerberos is
123124
used, this causes a reverse name query. If both host and <literal>hostaddr</> are

‎src/interfaces/libpq/fe-connect.c

Lines changed: 3 additions & 4 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.217 2003/01/0603:18:27 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.218 2003/01/0622:48:16 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -132,9 +132,8 @@ static const PQconninfoOption PQconninfoOptions[] = {
132132
"Database-Host","",40},
133133

134134
{"hostaddr","PGHOSTADDR",NULL,NULL,
135-
"Database-Host-IPv4-Address","",15},/* Room for
136-
* abc.def.ghi.jkl */
137-
135+
"Database-Host-IP-Address","",45},
136+
138137
{"port","PGPORT",DEF_PGPORT_STR,NULL,
139138
"Database-Port","",6},
140139

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp