pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <robertmhaas@gmail.com>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: pgsql-docs <pgsql-docs@postgresql.org>
Subject: Re: Obsolete description in pg_ctl-ref.sgml
Date: Wed, 15 Dec 2010 21:10:00 -0500
Message-ID: <AANLkTim+k4d7wfjEx4OByJrtBEeeeuE8wYdDQWUcv9wb@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimTnqw8aBTZC5=zfQ8t=YM+S40TTru2BP4dKD1H@mail.gmail.com>
References: <AANLkTi=aAZvCCOaRS=GK4GzoZ0shXWKi0rXBxTSX+RCt@mail.gmail.com>
	<AANLkTimoOFAN+akgYcmXuHiPSFjtvFCjWrKRrcEb966f@mail.gmail.com>
	<AANLkTikYmOOSCp3EXJ=+xDvmYemzwU51R9+-2GzTz-KL@mail.gmail.com>
	<AANLkTinpn6n8vfR+zeY0eL5dLqxCWwAipYgpb+t6Lu2V@mail.gmail.com>
	<AANLkTimTnqw8aBTZC5=zfQ8t=YM+S40TTru2BP4dKD1H@mail.gmail.com>

On Tue, Dec 14, 2010 at 7:17 PM, Fujii Masao <masao.fujii@gmail.com> wrote:
> On Wed, Dec 15, 2010 at 6:35 AM, Robert Haas <robertmhaas@gmail.com> wrote:
>>> At least the reference to section 31.14 is needless since password
>>> authentication doesn't affect the pg_ctl -w for now. But, on the second
>>> thought, it can still fail because of miss-configuration of connection
>>> variable, for example PGHOST.
>>
>> I thought PQping() was supposed to handle that correctly.  There are
>> four return values: PQPING_OK, PQPING_REJECT, PQPING_NO_RESPONSE,
>> PQPING_NO_ATTEMPT.  I believe the last is intended to cover blatant
>> misconfiguration.
>
> True. But even though the server is running normally, the misconfiguration
> might still make PQping return PQPING_NO_ATTEMPT and make pg_ctl -w
> fail to wait for complete startup. Currently misconfiguration of password
> authentication doesn't interfere with pg_ctl -w, so we can remove the
> reference to that. But other misconfigurations can be still harm, so I thought
> the sentence still needs to be in the document.

Hmm.  I'm inclined to just remove that sentence.  The fact that you
can make the operation fail by pointing it at someplace where there's
not a server listening doesn't really seem to merit a disclaimer.  I
think waiting IS a well-defined operation now; it just won't succeed
if you configure it in a way that doesn't make sense.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



view thread (9+ messages)  latest in thread

Message-ID: <AANLkTim+k4d7wfjEx4OByJrtBEeeeuE8wYdDQWUcv9wb@mail.gmail.com>
Permalink:  ../AANLkTim+k4d7wfjEx4OByJrtBEeeeuE8wYdDQWUcv9wb@mail.gmail.com/
Also on:    postgresql.org/message-id/AANLkTim+k4d7wfjEx4OByJrtBEeeeuE8wYdDQWUcv9wb@mail.gmail.com

 · 

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-docs@postgresql.org
  Cc: robertmhaas@gmail.com, masao.fujii@gmail.com
  Subject: Re: Obsolete description in pg_ctl-ref.sgml
  In-Reply-To: <AANLkTim+k4d7wfjEx4OByJrtBEeeeuE8wYdDQWUcv9wb@mail.gmail.com>
  References: <AANLkTi=aAZvCCOaRS=GK4GzoZ0shXWKi0rXBxTSX+RCt@mail.gmail.com> <AANLkTimoOFAN+akgYcmXuHiPSFjtvFCjWrKRrcEb966f@mail.gmail.com> <AANLkTikYmOOSCp3EXJ=+xDvmYemzwU51R9+-2GzTz-KL@mail.gmail.com> <AANLkTinpn6n8vfR+zeY0eL5dLqxCWwAipYgpb+t6Lu2V@mail.gmail.com> <AANLkTimTnqw8aBTZC5=zfQ8t=YM+S40TTru2BP4dKD1H@mail.gmail.com> <AANLkTim+k4d7wfjEx4OByJrtBEeeeuE8wYdDQWUcv9wb@mail.gmail.com>

* 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