Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TTfQM-0007iu-LD for pgsql-bugs@postgresql.org; Wed, 31 Oct 2012 21:02:06 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TTfQL-0004T3-HO for pgsql-bugs@postgresql.org; Wed, 31 Oct 2012 21:02:05 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id q9VL20907105 for ; Wed, 31 Oct 2012 14:02:00 -0700 Message-ID: <509191C3.5080901@hogranch.com> Date: Wed, 31 Oct 2012 14:01:55 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost" References: <15992.1351714012@sss.pgh.pa.us> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201210/258 X-Sequence-Number: 34558 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