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.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support