Re: [PATCH] pg_isready (was: [WIP] pg_ping utility) - Mailing list pgsql-hackers

From Robert Haas
Subject Re: [PATCH] pg_isready (was: [WIP] pg_ping utility)
Date
Msg-id CA+TgmoZKN8Kfu+KfGr6PYLFzwUhMFLP+szUBWqQ00EfnmjLp8g@mail.gmail.com
Whole thread Raw
In response to [PATCH] pg_isready (was: [WIP] pg_ping utility)  (Phil Sorber <phil@omniti.com>)
Responses Re: [PATCH] pg_isready (was: [WIP] pg_ping utility)
List pgsql-hackers
On Mon, Jan 21, 2013 at 12:23 PM, Phil Sorber <phil@omniti.com> wrote:
> Changing up the subject line because this is no longer a work in
> progress nor is it pg_ping anymore.

OK, I committed this.  However, I have one suggestion.  Maybe it would
be a good idea to add a -c or -t option that sets the connect_timeout
parameter.   Because:

[rhaas pgsql]$ pg_isready -h www.google.com
<grows old, dies>

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [PATCH] PQping Docs
Next
From: Pavel Stehule
Date:
Subject: Re: Prepared statements fail after schema changes with surprising error