Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7117C1337B4B for ; Fri, 24 Sep 2010 11:42:59 -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 31252-09 for ; Fri, 24 Sep 2010 14:42:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.121]) by mail.postgresql.org (Postfix) with ESMTP id 19F6E1337B69 for ; Fri, 24 Sep 2010 11:42:51 -0300 (ADT) X-Authority-Analysis: v=1.1 cv=aY8mh987dx7yGSxuH4MoJ/XJPAeuQM4k4I5uWFnwQcc= c=1 sm=0 a=P_pzE1zw__sA:10 a=8nJEP1OIZ-IA:10 a=qCTYjJJ2g1SgQhsHZAUATw==:17 a=pCwTipGAAAAA:8 a=nS42bT4MYlXzuPVBwwsA:9 a=JjjN9I6AjrBzEA_GXPuAb0l_2M4A:4 a=wPNLvfGTeEIA:10 a=NHVDkts6T6cA:10 a=qCTYjJJ2g1SgQhsHZAUATw==:117 X-Cloudmark-Score: 0 X-Originating-IP: 98.27.48.207 Received: from [98.27.48.207] ([98.27.48.207:45541] helo=[192.168.10.104]) by cdptpa-oedge03.mail.rr.com (envelope-from ) (ecelerity 2.2.2.39 r()) with ESMTP id 06/B7-29098-8E8BC9C4; Fri, 24 Sep 2010 14:42:48 +0000 Message-ID: <4C9CB8E8.3040106@dunslane.net> Date: Fri, 24 Sep 2010 10:42:48 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Lightning/1.0b3pre Thunderbird/3.1.3 MIME-Version: 1.0 To: Magnus Hagander CC: Tom Lane , 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 References: <201009091622.o89GMp0V012822@wwwmaster.postgresql.org> <13967.1285337095@sss.pgh.pa.us> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201009/1708 X-Sequence-Number: 170572 On 09/24/2010 10:15 AM, Magnus Hagander wrote: > On Fri, Sep 24, 2010 at 16:04, Tom Lane wrote: >> Magnus Hagander writes: >>> I took a quick look at the code, and from what I can tell this is >>> because PQconnectionNeedsPassword() always returns false if a >>> pgpass.conf has been used. There is no handling the case where pgpass >>> is used, but has an incorrect password. >> Why should it? That code is complicated enough, I don't think it needs >> to have a behavior of pretending that a wrong entry isn't there. > 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? Setting an incorrect password for the service account sounds like pilot error to me. cheers andrew