Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c9cf9820
Commit
c9cf9820
authored
Jan 06, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable IPv6 libpq 'hostaddr' addresses. Update docs.
parent
939a59ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
doc/src/sgml/libpq.sgml
doc/src/sgml/libpq.sgml
+5
-4
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-connect.c
+3
-4
No files found.
doc/src/sgml/libpq.sgml
View file @
c9cf9820
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.10
3 2002/12/13 05:49:10
momjian Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.10
4 2003/01/06 22:48:16
momjian Exp $
-->
<chapter id="libpq">
...
...
@@ -110,14 +110,15 @@ PGconn *PQconnectdb(const char *conninfo)
<listitem>
<para>
IP address of host to connect to. This should be in standard
numbers-and-dots form, as used by the BSD functions <function>inet_aton</> et al. If
a nonzero-length string is specified, TCP/IP communication is used.
IPv4 address format, e.g. <literal>172.28.40.9</>. If your machine
supports IPv6, you can also use those addresses. If a nonzero-length
string is specified, TCP/IP communication is used.
</para>
<para>
Using <literal>hostaddr</> instead of host allows the application to avoid a host
name look-up, which may be important in applications with time
constraints. However, Kerberos authentication requires the host
name. The following therefore applies
.
If host is specified without
name. The following therefore applies
:
If host is specified without
<literal>hostaddr</>, a host name lookup is forced. If <literal>hostaddr</> is specified without
host, the value for <literal>hostaddr</> gives the remote address; if Kerberos is
used, this causes a reverse name query. If both host and <literal>hostaddr</> are
...
...
src/interfaces/libpq/fe-connect.c
View file @
c9cf9820
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.21
7 2003/01/06 03:18:27
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.21
8 2003/01/06 22:48:16
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -132,9 +132,8 @@ static const PQconninfoOption PQconninfoOptions[] = {
"Database-Host"
,
""
,
40
},
{
"hostaddr"
,
"PGHOSTADDR"
,
NULL
,
NULL
,
"Database-Host-IPv4-Address"
,
""
,
15
},
/* Room for
* abc.def.ghi.jkl */
"Database-Host-IP-Address"
,
""
,
45
},
{
"port"
,
"PGPORT"
,
DEF_PGPORT_STR
,
NULL
,
"Database-Port"
,
""
,
6
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment