1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
Author: Martin Pitt <mpitt@debian.org>
Description: Put server Unix sockets into /var/run/postgresql/ by default
Forwarded: No, Debian specific configuration with postgresql-common
Using /tmp for sockets allows everyone to spoof a PostgreSQL server. Thus use
/var/run/postgresql/ for "system" clusters which run as 'postgres' (user
clusters will still use /tmp). Since system cluster are by far the common case,
set it as default.
Index: postgresql-9.1-9.1~beta1/src/include/pg_config_manual.h
===================================================================
--- postgresql-9.1-9.1~beta1.orig/src/include/pg_config_manual.h 2011-04-27 23:17:22.000000000 +0200
+++ postgresql-9.1-9.1~beta1/src/include/pg_config_manual.h 2011-05-10 11:24:47.331949788 +0200
@@ -141,7 +141,7 @@
* here's where to twiddle it. You can also override this at runtime
* with the postmaster's -k switch.
*/
-#define DEFAULT_PGSOCKET_DIR "/tmp"
+#define DEFAULT_PGSOCKET_DIR "/var/run/postgresql"
/*
* The random() function is expected to yield values between 0 and
|