diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-11 15:46:45 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-11 16:04:29 +0100 |
commit | f3d9c61e9becccc9ef25f64e5e639d45ea25650a (patch) | |
tree | 4a54120e685e222d6a70c6c4c0ee4bc1d980aac3 /virtual/modules/postgresql_run_socket_path.patch | |
parent | 54307da49e9975ca3cce0d45fd12ade016cf90d9 (diff) | |
download | Nix-f3d9c61e9becccc9ef25f64e5e639d45ea25650a.tar.gz Nix-f3d9c61e9becccc9ef25f64e5e639d45ea25650a.tar.zst Nix-f3d9c61e9becccc9ef25f64e5e639d45ea25650a.zip |
Improve postgresql: allow replication from backup-1, change root to
/run/postgres
Diffstat (limited to 'virtual/modules/postgresql_run_socket_path.patch')
-rw-r--r-- | virtual/modules/postgresql_run_socket_path.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/virtual/modules/postgresql_run_socket_path.patch b/virtual/modules/postgresql_run_socket_path.patch new file mode 100644 index 0000000..b558c7b --- /dev/null +++ b/virtual/modules/postgresql_run_socket_path.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | diff -Naur postgresql-9.2.0.sockets/src/include/pg_config_manual.h postgresql-9.2.0/src/include/pg_config_manual.h | ||
2 | --- postgresql-9.2.0.sockets/src/include/pg_config_manual.h 2012-09-06 17:26:17.000000000 -0400 | ||
3 | +++ postgresql-9.2.0/src/include/pg_config_manual.h 2012-09-06 18:13:18.183092471 -0400 | ||
4 | @@ -144,7 +144,7 @@ | ||
5 | * here's where to twiddle it. You can also override this at runtime | ||
6 | * with the postmaster's -k switch. | ||
7 | */ | ||
8 | -#define DEFAULT_PGSOCKET_DIR "/tmp" | ||
9 | +#define DEFAULT_PGSOCKET_DIR "/run/postgresql" | ||
10 | |||
11 | /* | ||
12 | * The random() function is expected to yield values between 0 and | ||