Re: Ability to listen on two unix sockets

Bruce Momjian <bruce@momjian.us>

From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Florian Pflug <fgp@phlo.org>, Honza Horak <hhorak@redhat.com>, pgsql-hackers@postgresql.org
Date: 2012-06-12T21:59:37Z
Lists: pgsql-hackers
On Tue, Jun 12, 2012 at 05:48:58PM -0400, Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > On Wed, Jun 06, 2012 at 10:38:42AM -0400, Tom Lane wrote:
> >> We already support multiple TCP sockets, so multiple Unix sockets
> >> shouldn't be that much extra trouble.
> 
> > We do?  I didn't think listening on multiple interfaces meant we
> > listened on multiple sockets.  Is there something else?
> 
> There's one socket for each entry in the listen_addresses list,
> plus one for the Unix socket.

Oh, how do we handle '*'?  We pass that to the kernel, I assume.  Shame
there is "wildcard" ability for unix domain sockets, which would use any
directory --- guess that wouldn't work out well.  ;-)

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +