Re: pg_ctl configurable timeout

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_ctl configurable timeout
Date: 2007-11-05 17:08:48
Message-ID: 22116.1194282528@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Tom Lane wrote:
>> Alvaro Herrera <alvherre(at)commandprompt(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2007-11-05 17:13:14 Re: dblink un-named connection doesn't get re-used
Previous Message Gokulakannan Somasundaram 2007-11-05 16:58:20 Re: Fwd: Clarification about HOT

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2007-11-05 17:12:57 Re: Adjustment of test_fsync.cf
Previous Message Bruce Momjian 2007-11-05 16:36:21 Re: BUG #3681: fillers are NULL in pgbench