1--- a/src/include/pg_config_manual.h
2+++ b/src/include/pg_config_manual.h
3@@ -201,7 +201,7 @@
4 * support them yet.
5 */
6 #ifndef WIN32
7-#define DEFAULT_PGSOCKET_DIR "/tmp"
8+#define DEFAULT_PGSOCKET_DIR "/run/postgresql"
9 #else
10 #define DEFAULT_PGSOCKET_DIR ""
11 #endif