mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
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.
This commit is contained in:
@ -795,9 +795,7 @@ extern Datum chr (PG_FUNCTION_ARGS);
|
||||
extern Datum repeat(PG_FUNCTION_ARGS);
|
||||
extern Datum ascii(PG_FUNCTION_ARGS);
|
||||
|
||||
/* inet_net_ntop.c */
|
||||
extern char *inet_net_ntop(int af, const void *src, int bits,
|
||||
char *dst, size_t size);
|
||||
/* inet_cidr_ntop.c */
|
||||
extern char *inet_cidr_ntop(int af, const void *src, int bits,
|
||||
char *dst, size_t size);
|
||||
|
||||
|
Reference in New Issue
Block a user