-d option for pg_isready is broken - Mailing list pgsql-hackers

From Josh Berkus
Subject -d option for pg_isready is broken
Date
Msg-id 52840D38.9070604@agliodbs.com
Whole thread Raw
Responses Re: -d option for pg_isready is broken  (Fabrízio de Royes Mello <fabriziomello@gmail.com>)
List pgsql-hackers
handyrep@john:~/handyrep$ pg_isready --version
pg_isready (PostgreSQL) 9.3.1

handyrep@john:~/handyrep$ pg_isready -h john -p 5432 -U postgres -d
postgres -q
pg_isready: missing "=" after "postgres" in connection info string

handyrep@john:~/handyrep$ pg_isready --host=john --port=5432
--user=postgres --dbname=postgres
pg_isready: missing "=" after "postgres" in connection info string

handyrep@john:~/handyrep$ pg_isready -h john -p 5432 -U postgres
john:5432 - accepting connections

so apparently the -d option:

a) doesn't work, and
b) doesn't do anything

I suggest simply removing it from the utility.

I'll note that the -U option doesn't appear to do anything relevant
either, but at least it doesn't error unnecessarily:

handyrep@john:~/handyrep$ pg_isready -h john -p 5432 -U no_such_user
john:5432 - accepting connections

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: additional json functionality
Next
From: Robert Berry
Date:
Subject: First patch -- somewhat trivial feature