]> granicus.if.org Git - postgresql/commit
Fix pg_isready to handle conninfo properly.
authorFujii Masao <fujii@postgresql.org>
Mon, 10 Jun 2013 18:03:16 +0000 (03:03 +0900)
committerFujii Masao <fujii@postgresql.org>
Mon, 10 Jun 2013 18:03:16 +0000 (03:03 +0900)
commit941c4ece98d08113b557bc8e7dbd8a9ac0ffac3e
tree72a60b00d23ad1da4d6c1394f2a99be326985abd
parent33a4466f767be8b153ef1ef78433ad9b1867dab8
Fix pg_isready to handle conninfo properly.

pg_isready displays the host name and the port number that it uses to connect
to the server. So far, pg_isready didn't use the conninfo specified in -d option
for calculating those host name and port number. This can lead to wrong display
to a user. This commit changes pg_isready so that it uses the conninfo for that
calculation.

Original patch by Phil Sorber, modified by me.
src/bin/scripts/pg_isready.c