Merge pull request #167047 from helsinki-systems/drop/postgresql10

postgresql: remove 10.x

Changed files
+10 -22
nixos
doc
manual
modules
virtualisation
pkgs
servers
sql
postgresql
top-level
+1 -1
nixos/doc/manual/administration/declarative-containers.section.md
···
{ config =
{ config, pkgs, ... }:
{ services.postgresql.enable = true;
-
services.postgresql.package = pkgs.postgresql_10;
};
};
```
···
{ config =
{ config, pkgs, ... }:
{ services.postgresql.enable = true;
+
services.postgresql.package = pkgs.postgresql_14;
};
};
```
+1 -1
nixos/doc/manual/configuration/config-file.section.md
···
pkgs.emacs
];
-
services.postgresql.package = pkgs.postgresql_10;
```
The latter option definition changes the default PostgreSQL package
···
pkgs.emacs
];
+
services.postgresql.package = pkgs.postgresql_14;
```
The latter option definition changes the default PostgreSQL package
+1 -1
nixos/doc/manual/from_md/administration/declarative-containers.section.xml
···
{ config =
{ config, pkgs, ... }:
{ services.postgresql.enable = true;
-
services.postgresql.package = pkgs.postgresql_10;
};
};
</programlisting>
···
{ config =
{ config, pkgs, ... }:
{ services.postgresql.enable = true;
+
services.postgresql.package = pkgs.postgresql_14;
};
};
</programlisting>
+1 -1
nixos/doc/manual/from_md/configuration/config-file.section.xml
···
pkgs.emacs
];
-
services.postgresql.package = pkgs.postgresql_10;
</programlisting>
<para>
The latter option definition changes the default PostgreSQL
···
pkgs.emacs
];
+
services.postgresql.package = pkgs.postgresql_14;
</programlisting>
<para>
The latter option definition changes the default PostgreSQL
+1 -1
nixos/modules/virtualisation/nixos-containers.nix
···
{ config =
{ config, pkgs, ... }:
{ services.postgresql.enable = true;
-
services.postgresql.package = pkgs.postgresql_10;
system.stateVersion = "21.05";
};
···
{ config =
{ config, pkgs, ... }:
{ services.postgresql.enable = true;
+
services.postgresql.package = pkgs.postgresql_14;
system.stateVersion = "21.05";
};
+4 -16
pkgs/servers/sql/postgresql/default.nix
···
}:
let
atLeast = lib.versionAtLeast version;
-
icuEnabled = atLeast "10";
lz4Enabled = atLeast "14";
in stdenv.mkDerivation rec {
···
setOutputFlags = false; # $out retains configureFlags :-/
buildInputs =
-
[ zlib readline openssl libxml2 ]
-
++ lib.optionals icuEnabled [ icu ]
++ lib.optionals lz4Enabled [ lz4 ]
++ lib.optionals enableSystemd [ systemd ]
++ lib.optionals gssSupport [ libkrb5 ]
++ lib.optionals (!stdenv.isDarwin) [ libossp_uuid ];
-
nativeBuildInputs = [ makeWrapper ] ++ lib.optionals icuEnabled [ pkg-config ];
enableParallelBuilding = !stdenv.isDarwin;
···
configureFlags = [
"--with-openssl"
"--with-libxml"
"--sysconfdir=/etc"
"--libdir=$(lib)/lib"
"--with-system-tzdata=${tzdata}/share/zoneinfo"
"--enable-debug"
(lib.optionalString enableSystemd "--with-systemd")
(if stdenv.isDarwin then "--with-uuid=e2fs" else "--with-ossp-uuid")
-
] ++ lib.optionals icuEnabled [ "--with-icu" ]
-
++ lib.optionals lz4Enabled [ "--with-lz4" ]
++ lib.optionals gssSupport [ "--with-gssapi" ]
++ lib.optionals stdenv.hostPlatform.isRiscV [ "--disable-spinlocks" ];
···
};
in self: {
-
-
postgresql_10 = self.callPackage generic {
-
version = "10.22";
-
psqlSchema = "10.0"; # should be 10, but changing it is invasive
-
hash = "sha256-lVl3VVxp3xpk9EuB1KGYfrdKu9GHBXn1rZ2UYTPdjk0=";
-
this = self.postgresql_10;
-
thisAttr = "postgresql_10";
-
inherit self;
-
icu = self.icu67;
-
};
postgresql_11 = self.callPackage generic {
version = "11.17";
···
}:
let
atLeast = lib.versionAtLeast version;
lz4Enabled = atLeast "14";
in stdenv.mkDerivation rec {
···
setOutputFlags = false; # $out retains configureFlags :-/
buildInputs =
+
[ zlib readline openssl libxml2 icu ]
++ lib.optionals lz4Enabled [ lz4 ]
++ lib.optionals enableSystemd [ systemd ]
++ lib.optionals gssSupport [ libkrb5 ]
++ lib.optionals (!stdenv.isDarwin) [ libossp_uuid ];
+
nativeBuildInputs = [ makeWrapper pkg-config ];
enableParallelBuilding = !stdenv.isDarwin;
···
configureFlags = [
"--with-openssl"
"--with-libxml"
+
"--with-icu"
"--sysconfdir=/etc"
"--libdir=$(lib)/lib"
"--with-system-tzdata=${tzdata}/share/zoneinfo"
"--enable-debug"
(lib.optionalString enableSystemd "--with-systemd")
(if stdenv.isDarwin then "--with-uuid=e2fs" else "--with-ossp-uuid")
+
] ++ lib.optionals lz4Enabled [ "--with-lz4" ]
++ lib.optionals gssSupport [ "--with-gssapi" ]
++ lib.optionals stdenv.hostPlatform.isRiscV [ "--disable-spinlocks" ];
···
};
in self: {
postgresql_11 = self.callPackage generic {
version = "11.17";
+1
pkgs/top-level/aliases.nix
···
# postgresql
postgresql96 = throw "'postgresql96' has been renamed to/replaced by 'postgresql_9_6'"; # Converted to throw 2022-09-24
postgresql_9_6 = throw "postgresql_9_6 has been removed from nixpkgs, as this version is no longer supported by upstream"; # Added 2021-12-03
# postgresql plugins
cstore_fdw = throw "'cstore_fdw' has been renamed to/replaced by 'postgresqlPackages.cstore_fdw'"; # Converted to throw 2022-09-24
···
# postgresql
postgresql96 = throw "'postgresql96' has been renamed to/replaced by 'postgresql_9_6'"; # Converted to throw 2022-09-24
postgresql_9_6 = throw "postgresql_9_6 has been removed from nixpkgs, as this version is no longer supported by upstream"; # Added 2021-12-03
+
postgresql_10 = throw "postgresql_10 has been removed from nixpkgs, as this version went EOL on 2022-11-10"; # Added 2022-08-01
# postgresql plugins
cstore_fdw = throw "'cstore_fdw' has been renamed to/replaced by 'postgresqlPackages.cstore_fdw'"; # Converted to throw 2022-09-24
-1
pkgs/top-level/all-packages.nix
···
timescaledb-tune = callPackage ../development/tools/database/timescaledb-tune { };
inherit (import ../servers/sql/postgresql pkgs)
-
postgresql_10
postgresql_11
postgresql_12
postgresql_13
···
timescaledb-tune = callPackage ../development/tools/database/timescaledb-tune { };
inherit (import ../servers/sql/postgresql pkgs)
postgresql_11
postgresql_12
postgresql_13