pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Magnus Hagander <magnus@hagander.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Cc: Mark Llewellyn <mark_llewellyn@adp.com>
Cc: pgsql-hackers@postgresql.org
Cc: Sujeet Rajguru <sujeet.rajguru@enterprisedb.com>
Subject: Re: Re: [BUGS] BUG #5650: Postgres service showing as stopped when in fact it is running
Date: Fri, 24 Sep 2010 10:42:48 -0400
Message-ID: <4C9CB8E8.3040106@dunslane.net> (raw)
In-Reply-To: <AANLkTimFTNqkPUsUhfWqHtThpu6iJ6OYH1etFYXa1tM8@mail.gmail.com>
References: <201009091622.o89GMp0V012822@wwwmaster.postgresql.org>
	<AANLkTinGKCkc1maDGXyMjcWRoKAXx2KhMDdQazT-jsgB@mail.gmail.com>
	<AANLkTinqm4cY_e6C5cYh9Uf7gzX_-Vy475Z3ZO6_PKkr@mail.gmail.com>
	<13967.1285337095@sss.pgh.pa.us>
	<AANLkTimFTNqkPUsUhfWqHtThpu6iJ6OYH1etFYXa1tM8@mail.gmail.com>



On 09/24/2010 10:15 AM, Magnus Hagander wrote:
> On Fri, Sep 24, 2010 at 16:04, Tom Lane<tgl@sss.pgh.pa.us>  wrote:
>> Magnus Hagander<magnus@hagander.net>  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



view thread (43+ messages)  latest in thread

Message-ID: <4C9CB8E8.3040106@dunslane.net>
Permalink:  ../4C9CB8E8.3040106@dunslane.net/
Also on:    postgresql.org/message-id/4C9CB8E8.3040106@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andrew@dunslane.net, magnus@hagander.net, tgl@sss.pgh.pa.us, ashesh.vashi@enterprisedb.com, mark_llewellyn@adp.com, pgsql-hackers@postgresql.org, sujeet.rajguru@enterprisedb.com
  Subject: 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> <AANLkTinGKCkc1maDGXyMjcWRoKAXx2KhMDdQazT-jsgB@mail.gmail.com> <AANLkTinqm4cY_e6C5cYh9Uf7gzX_-Vy475Z3ZO6_PKkr@mail.gmail.com> <13967.1285337095@sss.pgh.pa.us> <AANLkTimFTNqkPUsUhfWqHtThpu6iJ6OYH1etFYXa1tM8@mail.gmail.com> <4C9CB8E8.3040106@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox