Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W7w6w-0002yM-0d for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Jan 2014 00:01:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W7w6u-0003Nu-V7 for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Jan 2014 00:01:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W7w6u-0003No-74 for pgsql-bugs@postgresql.org; Tue, 28 Jan 2014 00:01:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W7w6s-0006tU-3A for pgsql-bugs@postgresql.org; Tue, 28 Jan 2014 00:00:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s0S00qbV026253; Mon, 27 Jan 2014 19:00:52 -0500 From: Tom Lane To: Andres Freund cc: pmorie@redhat.com, pgsql-bugs@postgresql.org Subject: Re: BUG #9003: Hard-coding to localhost in postmaster In-reply-to: <20140127232050.GB25670@awork2.anarazel.de> References: <20140127183125.26701.88068@wrigleys.postgresql.org> <20140127232050.GB25670@awork2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Tue, 28 Jan 2014 00:20:50 +0100" Date: Mon, 27 Jan 2014 19:00:52 -0500 Message-ID: <26252.1390867252@sss.pgh.pa.us> 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 Andres Freund 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