pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: pmorie@redhat.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9003: Hard-coding to localhost in postmaster
Date: Mon, 27 Jan 2014 19:00:52 -0500
Message-ID: <26252.1390867252@sss.pgh.pa.us> (raw)
In-Reply-To: <20140127232050.GB25670@awork2.anarazel.de>
References: <20140127183125.26701.88068@wrigleys.postgresql.org>
	<20140127232050.GB25670@awork2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Andres Freund <andres@2ndquadrant.com> writes:
> On 2014-01-27 18:31:25 +0000, pmorie@redhat.com wrote:
>> Currently there is a hard-coding in postgresql postmaster to bind to
>> 'localhost'.  This results in postmaster and autovacuum being broken if the
>> user cannot bind to 127.0.0.1.

> Why would the user be unable to bind to 127.0.0.1? I.e. what's the
> usecase this would allow?

Is there some other preferred name for localhost?  I was under the
impression that that name was required by some dusty RFC or other.

Assuming that you're speaking of the statistics collector's port, we do
not really want that to be "configurable" because there is no possible
reason for allowing it to bind to anything except the current host.
There would be a lot more potential for breakage than positive results
if we exposed a configuration knob for that.

I recall that we did debate relying on "localhost" versus hard-coding
"127.0.0.1", and rejected the latter because IPv6 might be preferred
on some systems.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (16+ messages)  latest in thread

Message-ID: <26252.1390867252@sss.pgh.pa.us>
Permalink:  ../26252.1390867252@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26252.1390867252@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, andres@2ndquadrant.com, pmorie@redhat.com
  Subject: Re: BUG #9003: Hard-coding to localhost in postmaster
  In-Reply-To: <26252.1390867252@sss.pgh.pa.us>
  References: <20140127183125.26701.88068@wrigleys.postgresql.org> <20140127232050.GB25670@awork2.anarazel.de> <26252.1390867252@sss.pgh.pa.us>

* 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