Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WdlUo-0001Vz-07 for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Apr 2014 19:09:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WdlUn-0007xh-Go for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Apr 2014 19:09:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WdlUm-0007xb-TR for pgsql-bugs@postgresql.org; Fri, 25 Apr 2014 19:09:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WdlUk-0000kv-Cw for pgsql-bugs@postgresql.org; Fri, 25 Apr 2014 19:09:12 +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 s3PJ91Ga012974; Fri, 25 Apr 2014 15:09:01 -0400 From: Tom Lane To: sofiamay@mail.ru cc: pgsql-bugs@postgresql.org Subject: Re: BUG #10140: Configured for 127.0.0.1 but binds to all IP In-reply-to: <20140425075608.2714.57886@wrigleys.postgresql.org> References: <20140425075608.2714.57886@wrigleys.postgresql.org> Comments: In-reply-to sofiamay@mail.ru message dated "Fri, 25 Apr 2014 07:56:08 -0000" Date: Fri, 25 Apr 2014 15:09:01 -0400 Message-ID: <12973.1398452941@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) 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 sofiamay@mail.ru writes: > All versions 9.x.x Postgresql have a BUG. Its configured for 127.0.0.1 but > binds to all IP (0.0.0.0)! What's your evidence for this statement? > but in reality: > postgres.exe TCP 0.0.0.0 5432 and > postgres.exe TCP :: 5432 I don't know what tool you're using here, but I wonder if you aren't misinterpreting its output. For comparison's sake, when using Linux's "netstat -l -n", I see this when PG's listen_addresses is '*': Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State ... tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN ... while when listen_addresses is 'localhost' the line is: tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN The all-zeroes foreign address does *not* mean that the socket is accessible from everywhere, it just reflects an absence of data for that column. The local address column is what's important for a listening socket --- at least with netstat. 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