Re: Yet another failure mode in pg_upgrade

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: Magnus Hagander <magnus@hagander.net>, pgsql-hackers@postgresql.org
Date: 2012-09-01T18:43:35Z
Lists: pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> Well, you only want the unix_socket* if sockdir is defined, but you want
> LISTEN_STR unconditionally, even if there is no sockdir.

Really?  What will happen when the installation's default is to not
listen on any Unix socket?  (unix_socket_directories = '' in
postgresql.conf.)

I'm inclined to think that the "no sockdir" case is broken and you
should get rid of it.  If you're starting a postmaster, you can and
should tell it a sockdir, period.  If you're running a live check this
code is all moot anyway.

			regards, tom lane