Re: Re: [BUGS] BUG #13611: test_postmaster_connection failed (Windows, listen_addresses = '0.0.0.0' or '::')

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Re: [BUGS] BUG #13611: test_postmaster_connection failed (Windows, listen_addresses = '0.0.0.0' or '::')
Дата
Msg-id CA+TgmoYfnf=pQKBa5khLf9RH_SkmMEn2miqmoJ-GTXeHNcVULg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #13611: test_postmaster_connection failed (Windows, listen_addresses = '0.0.0.0' or '::')  (Noah Misch <noah@leadboat.com>)
Ответы Re: Re: [BUGS] BUG #13611: test_postmaster_connection failed (Windows, listen_addresses = '0.0.0.0' or '::')  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
On Thu, Oct 8, 2015 at 11:26 PM, Noah Misch <noah@leadboat.com> wrote:
>> In particular, magically
>> substituting 127.0.0.1 for 0.0.0.0 seems utterly without principle.
>
> Binding a listening socket to "0.0.0.0" listens on every local IPv4 address,
> and 127.0.0.1 is one of those addresses.  That's the principle.  It's
> inelegant, but I expect it to work everywhere.

But... what about the machine's other addresses?

If Windows doesn't treat 0.0.0.0 to mean listen on every interface,
that's a shame.  But making it only listen on 127.0.0.1 and not any of
the others does not seem better.  Then, instead of 0.0.0.0 failing on
Windows, it would instead work but with different behavior.  That
doesn't seem good either.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: More work on SortSupport for text - strcoll() and strxfrm() caching
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [PATCH] Teach Catalog.pm how many attributes there should be per DATA() line