Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W8BNY-0004EZ-3F for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Jan 2014 16:19:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W8BNX-0002mY-IO for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Jan 2014 16:19:11 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W8BNW-0002ku-A9 for pgsql-bugs@postgresql.org; Tue, 28 Jan 2014 16:19:10 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W8BNP-0007DF-9j for pgsql-bugs@postgresql.org; Tue, 28 Jan 2014 16:19:09 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1W8BNM-0006gY-Ey; Tue, 28 Jan 2014 11:19:00 -0500 Date: Tue, 28 Jan 2014 11:19:00 -0500 From: Bruce Momjian To: Tom Lane Cc: Andres Freund , Paul Morie , pgsql-bugs@postgresql.org Subject: Re: BUG #9003: Hard-coding to localhost in postmaster Message-ID: <20140128161900.GF20898@momjian.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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23411.1390925754@sss.pgh.pa.us> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Tue, Jan 28, 2014 at 11:15:54AM -0500, Tom Lane wrote: > Andres Freund 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. Also, certainly other users are using Postgres and Openshift. What is different about your environment? Is it some new feature of Openshift? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs