Skip site navigation (1) Skip section navigation (2)

pgsql: When reporting the server as not responding,if the hostname was

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: When reporting the server as not responding,if the hostname was
Date: 2010-11-24 22:04:28
Message-ID: E1PLNS0-00051k-1h@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
When reporting the server as not responding, if the hostname was
supplied, also print the IP address.  This allows IPv4 and IPv6 failures
to be distinguished.  Also useful when a hostname resolves to multiple
IP addresses.

Also, remove use of inet_ntoa() and use our own inet_net_ntop() in all
places, including in libpq, because it is thread-safe.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=ba11258ccbf364d85de48b8b7fd46953ea7bb4f4

Modified Files
--------------
doc/src/sgml/libpq.sgml                |    4 +-
src/backend/utils/adt/Makefile         |    2 +-
src/backend/utils/adt/inet_cidr_ntop.c |  295 ++++++++++++++++++
src/backend/utils/adt/inet_net_ntop.c  |  530 --------------------------------
src/include/port.h                     |    4 +
src/include/utils/builtins.h           |    4 +-
src/interfaces/libpq/fe-connect.c      |   25 ++-
src/port/Makefile                      |    2 +-
src/port/getaddrinfo.c                 |   12 +-
src/port/inet_net_ntop.c               |  275 +++++++++++++++++
10 files changed, 608 insertions(+), 545 deletions(-)

pgsql-committers by date

Next:From: User HinoueDate: 2010-11-24 22:11:48
Subject: psqlodbc - psqlodbc: Applied a patch by Taizo Ito and correct the length
Previous:From: Tom LaneDate: 2010-11-24 19:30:08
Subject: pgsql: Create the system catalog infrastructure needed for KNNGIST.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group