Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 5DDF81337B53 for ; Fri, 24 Sep 2010 12:15:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 14217-02 for ; Fri, 24 Sep 2010 15:15: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 B5DFC1337B47 for ; Fri, 24 Sep 2010 12:15:30 -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 o8OFB752025618; Fri, 24 Sep 2010 11:11:07 -0400 (EDT) To: Andrew Dunstan cc: 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: <4C9CB8E8.3040106@dunslane.net> References: <201009091622.o89GMp0V012822@wwwmaster.postgresql.org> <13967.1285337095@sss.pgh.pa.us> <4C9CB8E8.3040106@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Fri, 24 Sep 2010 10:42:48 -0400" Date: Fri, 24 Sep 2010 11:11:06 -0400 Message-ID: <25617.1285341066@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/1709 X-Sequence-Number: 170573 Andrew Dunstan writes: > On 09/24/2010 10:15 AM, Magnus Hagander wrote: >> In that case, we should probably teach pg_ctl about this case, no? >> Since it clearly gives an incorrect message to the user now... > pg_ctl decides that the server is running iff it can connect to it. Do > you intend to provide for a different test? Seems like getting a password challenge from the server is sufficient evidence that the server is running, whether we are able to meet the challenge or not. Perhaps we could just twiddle pg_ctl's "is it up" test a bit to notice whether the connect failure was of this sort. (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.) regards, tom lane