Fix pg_isready to handle conninfo properly.

Fujii Masao <fujii@postgresql.org>

Commit: 941c4ece98d08113b557bc8e7dbd8a9ac0ffac3e
Author: Fujii Masao <fujii@postgresql.org>
Date: 2013-06-10T18:03:16Z
Releases: 9.3.0
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.

Files

PathChange+/−
src/bin/scripts/pg_isready.c modified +64 −52