Re: Ability to listen on two unix sockets - Mailing list pgsql-hackers

From Honza Horak
Subject Re: Ability to listen on two unix sockets
Date
Msg-id 45c6064b-34c8-438c-a283-309b62dc2331@zmail15.collab.prod.int.phx2.redhat.com
Whole thread Raw
In response to Re: Ability to listen on two unix sockets  (Honza Horak <hhorak@redhat.com>)
Responses Re: Ability to listen on two unix sockets
List pgsql-hackers
> On 06/13/2012 03:25 PM, Honza Horak wrote:
> 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.

I realized the patch has some difficulties -- namely the socket path in the data dir lock file, which currently uses
oneport for socket and the same for interface. So to allow users to use arbitrary port for all unix sockets, we'd need
toadd another line only for unix socket, which doesn't apply for other platforms. Or we could just say that the first
socketwill allways use the default port (PostPortNumber), which is a solution I prefer currently, but will be glad for
anyother opinion. This is also why there is still un-necesary string splitting in pg_ctl.c, which will be removed after
theissue above is solved.
 

Regards,
Honza


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: libpq compression
Next
From: Tom Lane
Date:
Subject: Re: libpq compression