packages/postgresql/0001-Set-DEFAULT_PGSOCKET_DIR-to-run-postgresql.patch

23 lines
713 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Fri, 15 Sep 2023 00:09:07 +0200
Subject: [PATCH] Set DEFAULT_PGSOCKET_DIR to /run/postgresql
---
src/include/pg_config_manual.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h
index a1a93ad706e8..77d1c0851096 100644
--- a/src/include/pg_config_manual.h
+++ b/src/include/pg_config_manual.h
@@ -206,7 +206,7 @@
* support them yet.
*/
#ifndef WIN32
-#define DEFAULT_PGSOCKET_DIR "/tmp"
+#define DEFAULT_PGSOCKET_DIR "/run/postgresql"
#else
#define DEFAULT_PGSOCKET_DIR ""
#endif