Re: Ability to listen on two unix sockets

Поиск
Список
Период
Сортировка
Искать
От
Honza Horak
Тема
Re: Ability to listen on two unix sockets
Дата
Msg-id
4FD73A59.9060703@redhat.com
Ответ на
Список
Дерево обсуждения
Ability to listen on two unix sockets Honza Horak <hhorak@redhat.com>
Re: Ability to listen on two unix sockets Florian Pflug <fgp@phlo.org>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Alvaro Herrera <alvherre@commandprompt.com>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Peter Eisentraut <peter_e@gmx.net>
Re: Ability to listen on two unix sockets Andres Freund <andres@2ndquadrant.com>
Re: Ability to listen on two unix sockets Peter Eisentraut <peter_e@gmx.net>
Re: Ability to listen on two unix sockets Andres Freund <andres@2ndquadrant.com>
Re: Ability to listen on two unix sockets Peter Eisentraut <peter_e@gmx.net>
Re: Ability to listen on two unix sockets Honza Horak <hhorak@redhat.com>
Re: Ability to listen on two unix sockets Peter Eisentraut <peter_e@gmx.net>
Re: Ability to listen on two unix sockets Florian Pflug <fgp@phlo.org>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Peter Eisentraut <peter_e@gmx.net>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Peter Eisentraut <peter_e@gmx.net>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Robert Haas <robertmhaas@gmail.com>
Re: Ability to listen on two unix sockets Peter Eisentraut <peter_e@gmx.net>
Re: Ability to listen on two unix sockets Robert Haas <robertmhaas@gmail.com>
Re: Ability to listen on two unix sockets Peter Eisentraut <peter_e@gmx.net>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Peter Eisentraut <peter_e@gmx.net>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Robert Haas <robertmhaas@gmail.com>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Robert Haas <robertmhaas@gmail.com>
Re: Ability to listen on two unix sockets Honza Horak <hhorak@redhat.com>
Re: Ability to listen on two unix sockets Peter Eisentraut <peter_e@gmx.net>
Re: Ability to listen on two unix sockets Michael Nolan <htfoot@gmail.com>
Re: Ability to listen on two unix sockets Peter Eisentraut <peter_e@gmx.net>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Peter Eisentraut <peter_e@gmx.net>
Re: Ability to listen on two unix sockets Robert Haas <robertmhaas@gmail.com>
Re: Ability to listen on two unix sockets Honza Horak <hhorak@redhat.com>
Re: Ability to listen on two unix sockets Peter Eisentraut <peter_e@gmx.net>
Re: Ability to listen on two unix sockets Bruce Momjian <bruce@momjian.us>
Re: Ability to listen on two unix sockets Honza Horak <hhorak@redhat.com>
Re: Ability to listen on two unix sockets Honza Horak <hhorak@redhat.com>
Re: Ability to listen on two unix sockets Honza Horak <hhorak@redhat.com>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Honza Horak <hhorak@redhat.com>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Andrew Dunstan <andrew@dunslane.net>
Re: Ability to listen on two unix sockets Andres Freund <andres@2ndquadrant.com>
Re: Ability to listen on two unix sockets Honza Horak <hhorak@redhat.com>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Roger Leigh <rleigh@codelibre.net>
Re: Ability to listen on two unix sockets Honza Horak <hhorak@redhat.com>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Andres Freund <andres@2ndquadrant.com>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Andres Freund <andres@2ndquadrant.com>
Re: Ability to listen on two unix sockets Robert Haas <robertmhaas@gmail.com>
Re: Ability to listen on two unix sockets Bruce Momjian <bruce@momjian.us>
Re: Ability to listen on two unix sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Ability to listen on two unix sockets Bruce Momjian <bruce@momjian.us>
Re: Ability to listen on two unix sockets Robert Haas <robertmhaas@gmail.com>
Re: Ability to listen on two unix sockets Gurjeet Singh <singh.gurjeet@gmail.com>
On 06/11/2012 11:47 PM, Peter Eisentraut wrote:
> On sön, 2012-06-10 at 17:24 -0400, Robert Haas wrote:
>>>> and also affects the naming of any UNIX sockets created.
>>>
>>> Why would that matter?  If you configure M ports and N Unix socket
>>> locations, you get M*N actual sockets created.
>>
>> ...I *seriously* doubt that this is the behavior anyone wants.
>> Creating M sockets per directory seems patently silly.
>
> How else would it work?
>
> If I say, syntax aside, listen on "ports" 5432 and 5433, and use socket
> directories /tmp and /var/run/postgresql, then a libpq-using client
> would expect to be able to connect using
>
> -h /tmp -p 5432
> -h /tmp -p 5433
> -h /var/run/postgresql -p 5432
> -h /var/run/postgresql -p 5433

This could be true in case all listening ports are equal, which I guess 
isn't a good idea, because IIUIC the port number as a part of the socket 
name is used for distinguish sockets of various postmasters in the same 
directory. In that scenario every client should know which port to 
connect and also which one is primary.

Regards,
Honza

В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата:
От: Dave Page
Дата:
FAQ