]> granicus.if.org Git - postgresql/commit
Support having multiple Unix-domain sockets per postmaster.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Aug 2012 21:26:44 +0000 (17:26 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Aug 2012 21:27:15 +0000 (17:27 -0400)
commitc9b0cbe98bd783e24a8c4d8d8ac472a494b81292
tree1d4459d614fe104efa5c8d6881b5ef347a523b11
parent85642ec00b5e0c58d2504b10c079693b8fb28cc5
Support having multiple Unix-domain sockets per postmaster.

Replace unix_socket_directory with unix_socket_directories, which is a list
of socket directories, and adjust postmaster's code to allow zero or more
Unix-domain sockets to be created.

This is mostly a straightforward change, but since the Unix sockets ought
to be created after the TCP/IP sockets for safety reasons (better chance
of detecting a port number conflict), AddToDataDirLockFile needs to be
fixed to support out-of-order updates of data directory lockfile lines.
That's a change that had been foreseen to be necessary someday anyway.

Honza Horak, reviewed and revised by Tom Lane
17 files changed:
doc/src/sgml/client-auth.sgml
doc/src/sgml/config.sgml
doc/src/sgml/ref/postgres-ref.sgml
doc/src/sgml/runtime.sgml
src/backend/libpq/pqcomm.c
src/backend/postmaster/postmaster.c
src/backend/tcop/postgres.c
src/backend/utils/adt/varlena.c
src/backend/utils/init/miscinit.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/bin/initdb/initdb.c
src/bin/pg_ctl/pg_ctl.c
src/include/libpq/libpq.h
src/include/miscadmin.h
src/include/postmaster/postmaster.h
src/include/utils/builtins.h