diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-15 23:35:19 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-15 23:37:29 +0200 |
commit | 3fbc8bcb1915fdfce4b9883ee9c745161fd62ab9 (patch) | |
tree | dd413304ecbb0064bc71bb75d26b715824cf13b7 /main/postgresql/conf-unix_socket_directories.patch | |
parent | fe338cc565ffa66933eb6c3b116bf12a90ffd8f1 (diff) | |
download | aports-3fbc8bcb1915fdfce4b9883ee9c745161fd62ab9.tar.bz2 aports-3fbc8bcb1915fdfce4b9883ee9c745161fd62ab9.tar.xz |
main/postgresql: change default unix_socket_directories
Diffstat (limited to 'main/postgresql/conf-unix_socket_directories.patch')
-rw-r--r-- | main/postgresql/conf-unix_socket_directories.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/main/postgresql/conf-unix_socket_directories.patch b/main/postgresql/conf-unix_socket_directories.patch new file mode 100644 index 0000000000..24c51e7b99 --- /dev/null +++ b/main/postgresql/conf-unix_socket_directories.patch @@ -0,0 +1,14 @@ +Creating socket in /tmp is silly, but unfortunately it's default location, +so many clients expect it. Thus we preconfigure PostgreSQL to create socket +both in /run/postgresql and /tmp. +--- a/src/backend/utils/misc/postgresql.conf.sample ++++ b/src/backend/utils/misc/postgresql.conf.sample +@@ -63,7 +63,7 @@ + #port = 5432 # (change requires restart) + #max_connections = 100 # (change requires restart) + #superuser_reserved_connections = 3 # (change requires restart) +-#unix_socket_directories = '/tmp' # comma-separated list of directories ++unix_socket_directories = '/run/postgresql,/tmp' # comma-separated list of directories + # (change requires restart) + #unix_socket_group = '' # (change requires restart) + #unix_socket_permissions = 0777 # begin with 0 to use octal notation |