postgresql_13: init at 13.0

https://www.postgresql.org/docs/13/release-13.html
This commit is contained in:
Mario Rodas 2020-09-24 04:20:00 +00:00
parent 236eb73d1b
commit 27733e2bf6
3 changed files with 23 additions and 1 deletions

View File

@ -64,7 +64,7 @@ let
(if atLeast "9.6" then ./patches/hardcode-pgxs-path-96.patch else ./patches/hardcode-pgxs-path.patch)
./patches/specify_pkglibdir_at_runtime.patch
./patches/findstring.patch
] ++ lib.optional stdenv.isLinux ./patches/socketdir-in-run.patch;
] ++ lib.optional stdenv.isLinux (if atLeast "13" then ./patches/socketdir-in-run-13.patch else ./patches/socketdir-in-run.patch);
installTargets = [ "install-world" ];
@ -221,4 +221,12 @@ in self: {
inherit self;
};
postgresql_13 = self.callPackage generic {
version = "13.0";
psqlSchema = "13";
sha256 = "15i2b7m9a9430idqdgvrcyx66cpxz0v2d81nfqcm8ss3inz51rw0";
this = self.postgresql_13;
inherit self;
};
}

View File

@ -0,0 +1,13 @@
diff --git i/src/include/pg_config_manual.h w/src/include/pg_config_manual.h
index 8f3ec6bde1..4fc01e4a0a 100644
--- i/src/include/pg_config_manual.h
+++ w/src/include/pg_config_manual.h
@@ -201,7 +201,7 @@
* support them yet.
*/
#ifndef WIN32
-#define DEFAULT_PGSOCKET_DIR "/tmp"
+#define DEFAULT_PGSOCKET_DIR "/run/postgresql"
#else
#define DEFAULT_PGSOCKET_DIR ""
#endif

View File

@ -16964,6 +16964,7 @@ in
postgresql_10
postgresql_11
postgresql_12
postgresql_13
;
postgresql = postgresql_11.override { this = postgresql; };
postgresqlPackages = recurseIntoAttrs postgresql.pkgs;