On Wed, Jan 23, 2013 at 11:07 AM, Robert Haas <robertmh...@gmail.com> wrote:
> On Mon, Jan 21, 2013 at 12:23 PM, Phil Sorber <p...@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>

Oh, hrmm. Yes, I will address that with a follow up patch. I guess in
my testing I was using a host that responded properly with port
unreachable or TCP RST or something.

Do you think we should have a default timeout, or only have one if
specified at the command line?

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


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to