diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-06 02:23:37 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-06 02:23:37 +0000 |
commit | 150ec328d3701adc17eb5af2f802bc1cb917259c (patch) | |
tree | c6ffe0ba8f8de33a144f5c107814302ef0f07782 /libecpg-10.5-var-run-socket.patch | |
parent | d409fc900950d24a286ec1c3053a3c229526d23f (diff) |
automatic import of libecpgopeneuler24.03_LTS
Diffstat (limited to 'libecpg-10.5-var-run-socket.patch')
-rw-r--r-- | libecpg-10.5-var-run-socket.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libecpg-10.5-var-run-socket.patch b/libecpg-10.5-var-run-socket.patch new file mode 100644 index 0000000..f3e3dff --- /dev/null +++ b/libecpg-10.5-var-run-socket.patch @@ -0,0 +1,26 @@ +Change the built-in default socket directory to be /var/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 +under systemd's PrivateTmp environment, which won't be using the same +global /tmp directory as the server; see bug #825448. + +Note that we apply the socket directory change at the level of the +hard-wired defaults in the C code, not by just twiddling the setting in +postgresql.conf.sample; this is so that the change will take effect on +server package update, without requiring any existing postgresql.conf +to be updated. (Of course, a user who dislikes this behavior can still +override it via postgresql.conf.) + +diff -up postgresql-13.0/src/include/pg_config_manual.h.patch1 postgresql-13.0/src/include/pg_config_manual.h +--- postgresql-13.0/src/include/pg_config_manual.h.patch1 2020-10-23 10:18:12.204959024 +0200 ++++ postgresql-13.0/src/include/pg_config_manual.h 2020-10-23 10:18:39.391208931 +0200 +@@ -201,7 +201,7 @@ + * support them yet. + */ + #ifndef WIN32 +-#define DEFAULT_PGSOCKET_DIR "/tmp" ++#define DEFAULT_PGSOCKET_DIR "/var/run/postgresql" + #else + #define DEFAULT_PGSOCKET_DIR "" + #endif |