postgresql_13: init at 13.0

https://www.postgresql.org/docs/13/release-13.html

+23 -1
+9 -1
pkgs/servers/sql/postgresql/default.nix
··· 64 64 (if atLeast "9.6" then ./patches/hardcode-pgxs-path-96.patch else ./patches/hardcode-pgxs-path.patch) 65 65 ./patches/specify_pkglibdir_at_runtime.patch 66 66 ./patches/findstring.patch 67 - ] ++ lib.optional stdenv.isLinux ./patches/socketdir-in-run.patch; 67 + ] ++ lib.optional stdenv.isLinux (if atLeast "13" then ./patches/socketdir-in-run-13.patch else ./patches/socketdir-in-run.patch); 68 68 69 69 installTargets = [ "install-world" ]; 70 70 ··· 218 218 psqlSchema = "12"; 219 219 sha256 = "1k06wryy8p4s1fim9qafcjlak3f58l0wqaqnrccr9x9j5jz3zsdy"; 220 220 this = self.postgresql_12; 221 + inherit self; 222 + }; 223 + 224 + postgresql_13 = self.callPackage generic { 225 + version = "13.0"; 226 + psqlSchema = "13"; 227 + sha256 = "15i2b7m9a9430idqdgvrcyx66cpxz0v2d81nfqcm8ss3inz51rw0"; 228 + this = self.postgresql_13; 221 229 inherit self; 222 230 }; 223 231
+13
pkgs/servers/sql/postgresql/patches/socketdir-in-run-13.patch
··· 1 + diff --git i/src/include/pg_config_manual.h w/src/include/pg_config_manual.h 2 + index 8f3ec6bde1..4fc01e4a0a 100644 3 + --- i/src/include/pg_config_manual.h 4 + +++ w/src/include/pg_config_manual.h 5 + @@ -201,7 +201,7 @@ 6 + * support them yet. 7 + */ 8 + #ifndef WIN32 9 + -#define DEFAULT_PGSOCKET_DIR "/tmp" 10 + +#define DEFAULT_PGSOCKET_DIR "/run/postgresql" 11 + #else 12 + #define DEFAULT_PGSOCKET_DIR "" 13 + #endif
+1
pkgs/top-level/all-packages.nix
··· 16964 16964 postgresql_10 16965 16965 postgresql_11 16966 16966 postgresql_12 16967 + postgresql_13 16967 16968 ; 16968 16969 postgresql = postgresql_11.override { this = postgresql; }; 16969 16970 postgresqlPackages = recurseIntoAttrs postgresql.pkgs;