Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"
Date: 2012-10-31 21:01:55
Message-ID: 509191C3.5080901@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 10/31/12 1:43 PM, Paul Jungwirth wrote:
>> This behaves as expected for me. I'm wondering whether your DNS
>> >server is resolving "localhost" as meaning both 127.0.0.1 and your
>> >public IP. "dig localhost." might be illuminating.
> Wow, that is some psychic debugging. Sure enough, my /etc/hosts is
> setting localhost to both 127.0.0.1 and my other IP. Using
> `listen_addresses = '127.0.0.1'` fixes the problem.

fix your /etc/hosts .... thats an artifact of the #(at)$@# RHEL installer,
if the network isn't properly configured at install time, it loves to do
that with the hostname.

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message abaile33 2012-11-01 04:07:28 BUG #7633: postgres92-9.2.1-1.x86_64 requires libuuid.so.16()(64bit)
Previous Message Paul Jungwirth 2012-10-31 20:43:42 Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"