Re: abstract Unix-domain sockets

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: abstract Unix-domain sockets
Дата
Msg-id CAKFQuwaNCWp82gy8hJyakMXkGzMjWDUzjAXx1rExABMTh6UW+w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: abstract Unix-domain sockets  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-hackers
On Mon, Nov 23, 2020 at 9:00 AM David G. Johnston <david.g.johnston@gmail.com> wrote:
Or is it the case that we always attempt to bind the TCP/IP port, regardless of the presence of a socket file, in which case the failure for port binding does cover the socket situation as well?

This cannot always be the case since the listened-to IP address matters.

I think the socket file error message hint is appropriate.  I'd consider it a bug if that code is effectively unreachable (the fact that the hint exists supports this conclusion).  If we add "abstract unix sockets" where we likewise prevent two servers from listening on the same channel, the absence of such a check for the socket file is even more unexpected.  At minimum we should at least declare whether we will even try and whether such a socket file check is best effort or simply generally reliable.

David J.

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

Предыдущее
От: Matthias van de Meent
Дата:
Сообщение: Re: [patch] CLUSTER blocks scanned progress reporting
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Prevent printing "next step instructions" in initdb and pg_upgrade