pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: sofiamay@mail.ru
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #10140: Configured for 127.0.0.1 but binds to all IP
Date: Fri, 25 Apr 2014 15:09:01 -0400
Message-ID: <12973.1398452941@sss.pgh.pa.us> (raw)
In-Reply-To: <20140425075608.2714.57886@wrigleys.postgresql.org>
References: <20140425075608.2714.57886@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (4+ messages)  latest in thread

Message-ID: <12973.1398452941@sss.pgh.pa.us>
Permalink:  ../12973.1398452941@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12973.1398452941@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, sofiamay@mail.ru
  Subject: Re: BUG #10140: Configured for 127.0.0.1 but binds to all IP
  In-Reply-To: <12973.1398452941@sss.pgh.pa.us>
  References: <20140425075608.2714.57886@wrigleys.postgresql.org> <12973.1398452941@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