From: | Fujii Masao <fujii(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix pg_isready to handle -d option properly. |
Date: | 2013-11-21 12:57:11 |
Message-ID: | E1VjTol-0004bb-0h@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix pg_isready to handle -d option properly.
Previously, -d option for pg_isready was broken. When the name of the
database was specified by -d option, pg_isready failed with an error.
When the conninfo specified by -d option contained the setting of the
host name but not Numeric IP address (i.e., hostaddr), pg_isready
displayed wrong connection message. -d option could not handle a valid
URI prefix at all. This commit fixes these bugs of pg_isready.
Backpatch to 9.3, where pg_isready was introduced.
Per report from Josh Berkus and Robert Haas.
Original patch by Fabrízio de Royes Mello, heavily modified by me.
Branch
------
REL9_3_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/844534dd4d2237011eff928bdf4306a6ababcdb0
Modified Files
--------------
src/bin/scripts/pg_isready.c | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2013-11-22 00:38:03 | pgsql: Support multi-argument UNNEST(), and TABLE() syntax for multiple |
Previous Message | Fujii Masao | 2013-11-21 12:57:10 | pgsql: Fix pg_isready to handle -d option properly. |