• Bruce Momjian's avatar
    When reporting the server as not responding, if the hostname was · ba11258c
    Bruce Momjian authored
    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.
    ba11258c
getaddrinfo.c 9.07 KB