about summary refs log tree commit diff
path: root/pkgs/servers/sql/postgresql/patches
diff options
context:
space:
mode:
authorSteve Purcell <steve@sanityinc.com>2023-09-16 11:03:10 +0200
committerSteve Purcell <steve@sanityinc.com>2023-09-16 18:19:06 +0200
commitae5b96f3ab6aabb60809ab78c2c99f8dd51ee678 (patch)
tree10884c3e15aa4f7707992f727c93a33895765755 /pkgs/servers/sql/postgresql/patches
parent7874b2433ebb10c1493632cd3e61b36eb80c8ab6 (diff)
postgresql_16: init at 16.0
Diffstat (limited to 'pkgs/servers/sql/postgresql/patches')
-rw-r--r--pkgs/servers/sql/postgresql/patches/disable-normalize_exec_path.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/servers/sql/postgresql/patches/disable-normalize_exec_path.patch b/pkgs/servers/sql/postgresql/patches/disable-normalize_exec_path.patch
new file mode 100644
index 0000000000000..349fd4203348a
--- /dev/null
+++ b/pkgs/servers/sql/postgresql/patches/disable-normalize_exec_path.patch
@@ -0,0 +1,12 @@
+--- a/src/common/exec.c
++++ b/src/common/exec.c
+@@ -238,6 +238,9 @@
+ static int
+ normalize_exec_path(char *path)
+ {
++	// On NixOS we *want* stuff relative to symlinks.
++	return 0;
++
+ 	/*
+ 	 * We used to do a lot of work ourselves here, but now we just let
+ 	 * realpath(3) do all the heavy lifting.