git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 7ee5f88) | patch
psql: Show IP address in \conninfo
2018年11月19日 17:34:12 +0000 (14:34 -0300)
2018年11月19日 17:34:12 +0000 (14:34 -0300)
commit 6e5f8d489acccdc50a35a1b7db8e72b5ad579253
psql: Show IP address in \conninfo

When hostaddr is given, the actual IP address that psql is connected to
can be totally unexpected for the given host. The more verbose output
we now generate makes things clearer. Since the "host" and "hostaddr"
parts of the conninfo could come from different sources (say, one of
them is in the service specification or a URI-style conninfo and the
other is not), this is not as silly as it may first appear. This is
also definitely useful if the hostname resolves to multiple addresses.

Author: Fabien Coelho
Reviewed-by: Pavel Stehule, Arthur Zakirov
Discussion: https://postgr.es/m/alpine.DEB.2.21.1810261532380.27686@lancre
https://postgr.es/m/alpine.DEB.2.21.1808201323020.13832@lancre
doc/src/sgml/libpq.sgml diff | blob | blame | history
src/bin/psql/command.c diff | blob | blame | history
src/interfaces/libpq/exports.txt diff | blob | blame | history
src/interfaces/libpq/fe-connect.c diff | blob | blame | history
src/interfaces/libpq/libpq-fe.h diff | blob | blame | history
src/interfaces/libpq/libpq-int.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /