Support having multiple Unix-domain sockets per postmaster.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/client-auth.sgml | modified | +1 −1 |
| doc/src/sgml/config.sgml | modified | +21 −14 |
| doc/src/sgml/ref/postgres-ref.sgml | modified | +8 −2 |
| doc/src/sgml/runtime.sgml | modified | +1 −1 |
| src/backend/libpq/pqcomm.c | modified | +61 −31 |
| src/backend/postmaster/postmaster.c | modified | +59 −16 |
| src/backend/tcop/postgres.c | modified | +1 −1 |
| src/backend/utils/adt/varlena.c | modified | +110 −0 |
| src/backend/utils/init/miscinit.c | modified | +75 −45 |
| src/backend/utils/misc/guc.c | modified | +8 −4 |
| src/backend/utils/misc/postgresql.conf.sample | modified | +2 −1 |
| src/bin/initdb/initdb.c | modified | +10 −1 |
| src/bin/pg_ctl/pg_ctl.c | modified | +1 −1 |
| src/include/libpq/libpq.h | modified | +4 −4 |
| src/include/miscadmin.h | modified | +4 −3 |
| src/include/postmaster/postmaster.h | modified | +1 −1 |
| src/include/utils/builtins.h | modified | +2 −0 |