diff options
author | Bruce Momjian <bruce@momjian.us> | 2010-11-24 17:04:19 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2010-11-24 17:04:19 -0500 |
commit | ba11258ccbf364d85de48b8b7fd46953ea7bb4f4 (patch) | |
tree | 94824222a24f4e98cb2af0e90f845a687eb38dac /src/include/utils/builtins.h | |
parent | 725d52d0c27cffe8c99bb78e2b0d2480d5cd702b (diff) | |
download | postgresql-ba11258ccbf364d85de48b8b7fd46953ea7bb4f4.tar.gz postgresql-ba11258ccbf364d85de48b8b7fd46953ea7bb4f4.zip |
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.
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r-- | src/include/utils/builtins.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index bad0a8ebdf2..a2fb7494cb4 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -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); |