postgresql/src
Fujii Masao 9f80f4835a 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.
2014-01-24 02:32:39 +09:00
..
backend Fix declaration of GinVacuumState. 2014-01-22 19:55:36 +02:00
bin Add libpq function PQhostaddr(). 2014-01-24 02:32:39 +09:00
common Make various variables const (read-only). 2014-01-18 16:04:32 -05:00
include Compress GIN posting lists, for smaller index size. 2014-01-22 19:20:58 +02:00
interfaces Add libpq function PQhostaddr(). 2014-01-24 02:32:39 +09:00
makefiles Remove leftovers of IRIX port 2013-11-12 06:39:36 -05:00
pl docs: update PL/pgSQL docs about the use of := and = 2014-01-16 16:40:58 -05:00
port Move username lookup functions from /port to /common 2014-01-10 18:03:28 -05:00
template Remove leftovers of IRIX port 2013-11-12 06:39:36 -05:00
test Add a cardinality function for arrays. 2014-01-21 12:38:53 -05:00
timezone Update copyright for 2014 2014-01-07 16:05:30 -05:00
tools Allow case insensitive build version argument for MSVC. 2014-01-23 12:18:15 -05:00
tutorial Update copyright for 2014 2014-01-07 16:05:30 -05:00
.gitignore
bcc32.mak
DEVELOPERS
Makefile Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
Makefile.global.in build: pass EXTRA_REGRESS_OPTS to secondary regression tests 2013-12-04 10:14:45 -05:00
Makefile.shlib Remove IRIX port. 2013-10-18 08:14:21 -04:00
nls-global.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
win32.mak