postgresql/src
Peter Eisentraut a9cff89f7e Allow building without default socket directory
We have code paths for Unix socket support and no Unix socket support.
Now add a third variant: Unix socket support but do not use a Unix
socket by default in the client or the server, only if you explicitly
specify one.  This will be useful when we enable Unix socket support
on Windows.

To implement this, tweak things so that setting DEFAULT_PGSOCKET_DIR
to "" has the desired effect.  This mostly already worked like that;
only a few places needed to be adjusted.  Notably, the reference to
DEFAULT_PGSOCKET_DIR in UNIXSOCK_PATH() could be removed because all
callers already resolve an empty socket directory setting with a
default if appropriate.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/75f72249-8ae6-322a-63df-4fe03eeccb9f@2ndquadrant.com
2020-01-31 16:28:43 +01:00
..
backend Sprinkle some const decorations 2020-01-31 12:52:08 +01:00
bin Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
common Move jsonapi.c and jsonapi.h to src/common. 2020-01-29 10:22:51 -05:00
fe_utils Reduce size of backend scanner's tables. 2020-01-13 15:04:31 -05:00
include Allow building without default socket directory 2020-01-31 16:28:43 +01:00
interfaces Allow building without default socket directory 2020-01-31 16:28:43 +01:00
makefiles Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
pl Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
port Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
template Fix compiler warning for ppoll() on Cygwin 2019-12-22 23:20:00 +01:00
test Fix typo in recently-added TAP test for replication slots 2020-01-31 13:57:56 +09:00
timezone Update copyrights for 2020 2020-01-01 12:21:45 -05:00
tools Fix vcregress.pl for new plperl test case. 2020-01-29 19:13:34 -05:00
tutorial Update copyrights for 2020 2020-01-01 12:21:45 -05:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in Add support for automatically updating Unicode derived files 2020-01-09 10:08:14 +01:00
Makefile.shlib
nls-global.mk