Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C1A3C133798E for ; Fri, 24 Sep 2010 12:33:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 28402-10 for ; Fri, 24 Sep 2010 15:33:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id AE8C1133729E for ; Fri, 24 Sep 2010 12:33:31 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o8OFXQwf013890; Fri, 24 Sep 2010 11:33:26 -0400 (EDT) To: Dave Page cc: Andrew Dunstan , Magnus Hagander , Ashesh Vashi , Mark Llewellyn , pgsql-hackers@postgresql.org, Sujeet Rajguru Subject: Re: Re: [BUGS] BUG #5650: Postgres service showing as stopped when in fact it is running In-reply-to: References: <201009091622.o89GMp0V012822@wwwmaster.postgresql.org> <13967.1285337095@sss.pgh.pa.us> <4C9CB8E8.3040106@dunslane.net> <25617.1285341066@sss.pgh.pa.us> Comments: In-reply-to Dave Page message dated "Fri, 24 Sep 2010 16:22:17 +0100" Date: Fri, 24 Sep 2010 11:33:25 -0400 Message-ID: <13889.1285342405@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201009/1714 X-Sequence-Number: 170578 Dave Page writes: > On Fri, Sep 24, 2010 at 4:11 PM, Tom Lane wrote: >> (Of course, a "pg_ping" utility would be a better answer, but nobody's >> gotten around to that in more than ten years, so I'm not holding my >> breath.) > Hmm, that sounded like it could be my 9.1 mini project - then Google > showed me that SeanC wrote something already. > http://archives.postgresql.org/pgsql-patches/2003-07/msg00053.php Huh, I wonder why we never adopted that? Although I'd be inclined to do most of the heavy lifting inside libpq, myself, and this is way more verbose than what pg_ctl wants. regards, tom lane