pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow building without default socket directory
Date: Fri, 31 Jan 2020 15:48:22 +0000
Message-ID: <E1ixYWs-0007nP-IC@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a9cff89f7e638c060621a62ca35da97a12adde42

Modified Files
--------------
src/include/libpq/pqcomm.h        |  6 +++---
src/include/pg_config_manual.h    |  5 +++++
src/interfaces/libpq/fe-connect.c | 15 ++++++++++-----
3 files changed, 18 insertions(+), 8 deletions(-)



Message-ID: <E1ixYWs-0007nP-IC@gemulon.postgresql.org>
Permalink:  ../E1ixYWs-0007nP-IC@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ixYWs-0007nP-IC@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Allow building without default socket directory
  In-Reply-To: <E1ixYWs-0007nP-IC@gemulon.postgresql.org>
  References: <E1ixYWs-0007nP-IC@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox