From: John R Pierce <pierce@hogranch.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"
Date: Wed, 31 Oct 2012 14:01:55 -0700
Message-ID: <509191C3.5080901@hogranch.com> (raw)
In-Reply-To: <CA+6hpaktvxnj+sM_2iG0dGP_7C13y5y25GUwx9dLebrj8-rK4w@mail.gmail.com>
References: <E1TTe7S-0003v2-4u@wrigleys.postgresql.org>
<15992.1351714012@sss.pgh.pa.us>
<CA+6hpaktvxnj+sM_2iG0dGP_7C13y5y25GUwx9dLebrj8-rK4w@mail.gmail.com>
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 #@$@# 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
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: pierce@hogranch.com
Subject: Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"
In-Reply-To: <509191C3.5080901@hogranch.com>
References: <E1TTe7S-0003v2-4u@wrigleys.postgresql.org> <15992.1351714012@sss.pgh.pa.us> <CA+6hpaktvxnj+sM_2iG0dGP_7C13y5y25GUwx9dLebrj8-rK4w@mail.gmail.com> <509191C3.5080901@hogranch.com>
* 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