From d99baaaa74ad4a7e5ca64e129c9cdb0ccb30891a7346cef8ed51b2558254df35 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Mon, 7 Aug 2023 15:18:00 +0000 Subject: [PATCH] - Don't create a unix domain socket under /tmp anymore. OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=4 --- postgresql-var-run-socket.patch | 6 ++---- postgresql16.changes | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/postgresql-var-run-socket.patch b/postgresql-var-run-socket.patch index 86ab646..0d58218 100644 --- a/postgresql-var-run-socket.patch +++ b/postgresql-var-run-socket.patch @@ -1,7 +1,5 @@ Change the built-in default socket directory to be /run/postgresql. -For backwards compatibility with (probably non-libpq-based) clients that -might still expect to find the socket in /tmp, also create a socket in -/tmp. This is to resolve communication problems with clients operating +This is to resolve communication problems with clients operating under systemd's PrivateTmp environment, which won't be using the same global /tmp directory as the server; see bug #825448. @@ -22,7 +20,7 @@ Index: src/include/pg_config_manual.h */ #ifndef WIN32 -#define DEFAULT_PGSOCKET_DIR "/tmp" -+#define DEFAULT_PGSOCKET_DIR "/run/postgresql, /tmp" ++#define DEFAULT_PGSOCKET_DIR "/run/postgresql" #else #define DEFAULT_PGSOCKET_DIR "" #endif diff --git a/postgresql16.changes b/postgresql16.changes index fe3930d..7865673 100644 --- a/postgresql16.changes +++ b/postgresql16.changes @@ -2,6 +2,7 @@ Mon Aug 7 13:08:04 UTC 2023 - Reinhard Max - Copy postgresql15 to postgresql16 and upgrade to v16beta2. +- Don't create a unix domain socket under /tmp anymore. ------------------------------------------------------------------- Fri May 26 11:48:38 UTC 2023 - Reinhard Max