Re: pg_ctl configurable timeout - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_ctl configurable timeout
Date
Msg-id 22116.1194282528@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_ctl configurable timeout  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Tom Lane wrote:
>> Alvaro Herrera <alvherre@commandprompt.com> writes:
>>> I think the mythical pg_ping utility should be written.  It seems the
>>> easiest way out of the problem.
>> 
>> If pg_ctl were still a shell script there would be some point in that,
>> but since it's a C program it can certainly do anything a separate
>> utility would do.

> Well, pg_ctl would not be the only user of such an utility.  Things like
> (say) control panels for shared hosting could benefit from it as well.
> As would system health monitors.

I still see no point in creating a separate binary for the
functionality.  If you want to make it available to shell scripts,
invent a "pg_ctl ping" subcommand.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: pg_ctl configurable timeout
Next
From: Bruce Momjian
Date:
Subject: Re: dblink un-named connection doesn't get re-used