Re: Ability to listen on two unix sockets

Honza Horak <hhorak@redhat.com>

From: Honza Horak <hhorak@redhat.com>
To: Pg Hackers <pgsql-hackers@postgresql.org>
Cc: Robert Haas <robertmhaas@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, Peter Eisentraut <peter_e@gmx.net>, Alvaro Herrera <alvherre@commandprompt.com>, Florian Pflug <fgp@phlo.org>
Date: 2012-06-15T12:10:21Z
Lists: pgsql-hackers

Attachments

On 06/13/2012 03:25 PM, Honza Horak wrote:
> Going through the thread, I'd like to sum it up choosing approach with
> less potential issues and would like to find a consensus if possible.
>
> It seems unix_socket_directory could be turned into list and probably
> renamed to unix_socket_directories, since it would be confusing if a
> list value is in singular. On the other hand, we probably don't want to
> specify listening ports together with additional unix sockets in one
> configuration option, so it seems better to add a new configuration
> option to distinguish the primary listening port from additional ports.
>
> Regards,
> Honza

A draft patch is attached. It renames unix_socket_directory to 
unix_socket_directories and allows to use directory:port to be able to 
create more sockets in one directory with different port number in the 
socket name.

Regards,
Honza