From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Paul Morie <pmorie@redhat.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9003: Hard-coding to localhost in postmaster
Date: Tue, 28 Jan 2014 11:15:54 -0500
Message-ID: <23411.1390925754@sss.pgh.pa.us> (raw)
In-Reply-To: <20140128155419.GB18333@awork2.anarazel.de>
References: <20140127183125.26701.88068@wrigleys.postgresql.org>
<20140127232050.GB25670@awork2.anarazel.de>
<1274922501.13409952.1390867581243.JavaMail.root@redhat.com>
<20140128001221.GC25670@awork2.anarazel.de>
<1664800968.14386753.1390923709454.JavaMail.root@redhat.com>
<20140128155419.GB18333@awork2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Andres Freund <andres@2ndquadrant.com> writes:
> On 2014-01-28 10:41:49 -0500, Paul Morie wrote:
>> The challenge we have in openshift is that we have multiple users on a
>> single node who all want to bind to the same port. To deal with this,
>> we forbid the users from binding to 127.0.0.1 using selinux and
>> allocate IPs for them to bind to.
> Uhm. What about using network namespaces?
> To me this really sounds like tackling things from the wrong
> end. Instead of fixing the infrastructure once this way you need to
> adapt various pieces of software in odd ways.
Yeah. In particular, I'd always supposed that a platform that wanted
to use some other IP address than 127.0.0.1 for loopback would also be
expected to make sure that "localhost" mapped to that other IP address.
Otherwise, there simply isn't any way to make network-using software
work except random hacks.
Frankly, I don't think you're going to get any cooperation from Postgres
in adapting to such a broken networking environment as this, and I doubt
other upstreams are going to be any more positive about it.
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
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: <23411.1390925754@sss.pgh.pa.us>
References: <20140127183125.26701.88068@wrigleys.postgresql.org> <20140127232050.GB25670@awork2.anarazel.de> <1274922501.13409952.1390867581243.JavaMail.root@redhat.com> <20140128001221.GC25670@awork2.anarazel.de> <1664800968.14386753.1390923709454.JavaMail.root@redhat.com> <20140128155419.GB18333@awork2.anarazel.de> <23411.1390925754@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