pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #10140: Configured for 127.0.0.1 but binds to all IP
4+ messages / 4 participants
[nested] [flat]
* BUG #10140: Configured for 127.0.0.1 but binds to all IP
@ 2014-04-25 07:56 sofiamay@mail.ru
0 siblings, 2 replies; 4+ messages in thread
From: sofiamay@mail.ru @ 2014-04-25 07:56 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 10140
Logged by: Dmitro
Email address: sofiamay@mail.ru
PostgreSQL version: 9.3.4
Operating system: Windows 7 Pro x64
Description:
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)!
In postgresql.conf:
listen_addresses = '127.0.0.1'
but in reality:
postgres.exe TCP 0.0.0.0 5432 and
postgres.exe TCP :: 5432
What's the trouble? Please fix this bug.
Sorry for my english.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #10140: Configured for 127.0.0.1 but binds to all IP
@ 2014-04-25 18:15 Stephen Frost <sfrost@snowman.net>
parent: sofiamay@mail.ru
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Frost @ 2014-04-25 18:15 UTC (permalink / raw)
To: sofiamay@mail.ru; +Cc: pgsql-bugs
Greetings,
* sofiamay@mail.ru (sofiamay@mail.ru) wrote:
> 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)!
>
> In postgresql.conf:
>
> listen_addresses = '127.0.0.1'
>
> but in reality:
>
> postgres.exe TCP 0.0.0.0 5432 and
> postgres.exe TCP :: 5432
>
> What's the trouble? Please fix this bug.
> Sorry for my english.
Are you sure that you completely restarted PostgreSQL after making the
change to postgresql.conf? What happens if you, in psql, run:
show listen_addresses;
?
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 835B) download
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #10140: Configured for 127.0.0.1 but binds to all IP
@ 2014-04-25 19:09 Tom Lane <tgl@sss.pgh.pa.us>
parent: sofiamay@mail.ru
1 sibling, 1 reply; 4+ messages in thread
From: Tom Lane @ 2014-04-25 19:09 UTC (permalink / raw)
To: sofiamay@mail.ru; +Cc: pgsql-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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #10140: Configured for 127.0.0.1 but binds to all IP
@ 2014-04-26 06:38 David G Johnston <david.g.johnston@gmail.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 4+ messages in thread
From: David G Johnston @ 2014-04-26 06:38 UTC (permalink / raw)
To: pgsql-bugs
sofiamay wrote
> File works fine, but PostreSQL binds to all IP.
> Parameter [i] in pg_ctl cmd line is i[mmediate] and does not affect for IP
> adress.
>
> It is a bug.
Cannot confirm or deny but have you actually tested this on 9.0; 9.1; 9.2
and 9.3 to confirm its a bug on all of them? Let's ignore whether it is a
possible bug on 8.4
Please forgive the somewhat credulous response; the fact that this has taken
4+ years to apparently surface and the fact that Windows is a less used
platform (compared to Linux) for the people who monitor the -bugs list means
that the natural response is to confirm that user's setup and not assume the
code is wrong.
Also, did you build from source or did you use an installer?
David J.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-10140-Configured-for-127-0-0-1-but-binds-to-all-IP-tp580...
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2014-04-26 06:38 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-04-25 07:56 BUG #10140: Configured for 127.0.0.1 but binds to all IP sofiamay@mail.ru
2014-04-25 18:15 ` Stephen Frost <sfrost@snowman.net>
2014-04-25 19:09 ` Tom Lane <tgl@sss.pgh.pa.us>
2014-04-26 06:38 ` David G Johnston <david.g.johnston@gmail.com>
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