aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_func.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2014-01-24 02:32:39 +0900
committerFujii Masao <fujii@postgresql.org>2014-01-24 02:32:39 +0900
commit9f80f4835a55a1cbffcda5d23a617917f3286c14 (patch)
tree085b264cb9300b27bb8f5866e1eaff6fc7420018 /src/backend/parser/parse_func.c
parentd5bc6ce6ac20e6de8b61946977db14e13acec2a0 (diff)
downloadpostgresql-9f80f4835a55a1cbffcda5d23a617917f3286c14.tar.gz
postgresql-9f80f4835a55a1cbffcda5d23a617917f3286c14.zip
Add libpq function PQhostaddr().
There was a bug in the psql's meta command \conninfo. When the IP address was specified in the hostaddr and psql used it to create a connection (i.e., psql -d "hostaddr=xxx"), \conninfo could not display that address. This is because \conninfo got the connection information only from PQhost() which could not return hostaddr. This patch adds PQhostaddr(), and changes \conninfo so that it can display not only the host name that PQhost() returns but also the IP address which PQhostaddr() returns. The bug has existed since 9.1 where \conninfo was introduced. But it's too late to add new libpq function into the released versions, so no backpatch.
Diffstat (limited to 'src/backend/parser/parse_func.c')
0 files changed, 0 insertions, 0 deletions