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

Поиск
Список
Период
Сортировка
От Paul Jungwirth
Тема Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"
Дата
Msg-id CA+6hpaktvxnj+sM_2iG0dGP_7C13y5y25GUwx9dLebrj8-rK4w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"  (John R Pierce <pierce@hogranch.com>)
Список pgsql-bugs
> 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.

Thank you!
Paul

--
_________________________________
Pulchritudo splendor veritatis.

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"
Следующее
От: John R Pierce
Дата:
Сообщение: Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"