summaryrefslogtreecommitdiff
path: root/src/port/inet_net_ntop.c
Commit message (Collapse)AuthorAgeFilesLines
* Pgindent run before 9.1 beta2.Bruce Momjian2011-06-091-2/+2
|
* pgindent run before PG 9.1 beta 1.Bruce Momjian2011-04-101-5/+5
|
* Fix portability issues in new src/port/inet_net_ntop.c file.Tom Lane2010-11-261-1/+24
| | | | | | | | | | 1. Don't #include postgres.h in a frontend build. 2. Don't assume that the backend's symbol PGSQL_AF_INET6 has anything to do with the constant that will be used by system library functions (because, in point of fact, it usually doesn't). Fortunately, PGSQL_AF_INET is equal to AF_INET, so we can just cater for both sets of values in one case construct without fear of conflict.
* When reporting the server as not responding, if the hostname wasBruce Momjian2010-11-241-0/+275
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.