Skip to content

Commit f10fc70

Browse files
authored
Merge: postgresqlPackages.timescaledb: 2.14.2 -> 2.17.2; adopt, nixfmt; postgresqlPackages.timescaledb_toolkit: 1.18.0 -> 1.19.0 (#348223)
2 parents e766b67 + 7baa9da commit f10fc70

File tree

5 files changed

+43
-20
lines changed

5 files changed

+43
-20
lines changed

nixos/doc/manual/release-notes/rl-2505.section.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222

2323
- `buildGoPackage` has been removed. Use `buildGoModule` instead. See the [Go section in the nixpkgs manual](https://nixos.org/manual/nixpkgs/unstable/#sec-language-go) for details.
2424

25+
- `timescaledb` requires manual upgrade steps.
26+
After you run ALTER EXTENSION, you must run [this SQL script](https://github.com/timescale/timescaledb-extras/blob/master/utils/2.15.X-fix_hypertable_foreign_keys.sql). For more details, see the following pull requests [#6797](https://github.com/timescale/timescaledb/pull/6797).
27+
PostgreSQL 13 is no longer supported in TimescaleDB v2.16.
28+
2529
- `kanata` was updated to v1.7.0, which introduces several breaking changes.
2630
See the release notes of
2731
[v1.7.0](https://github.com/jtroo/kanata/releases/tag/v1.7.0)

pkgs/development/tools/rust/cargo-pgrx/default.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,11 @@ in
7777
hash = "sha256-0m9oaqjU42RYyttkTihADDrRMjr2WoK/8sInZALeHws=";
7878
cargoHash = "sha256-9XTIcpoCnROP63ZTDgMMMmj0kPggiTazKlKQfCgXKzk=";
7979
};
80+
81+
cargo-pgrx_0_12_6 = generic {
82+
version = "0.12.6";
83+
hash = "sha256-7aQkrApALZe6EoQGVShGBj0UIATnfOy2DytFj9IWdEA=";
84+
cargoHash = "sha256-Di4UldQwAt3xVyvgQT1gUhdvYUVp7n/a72pnX45kP0w=";
85+
};
86+
8087
}

pkgs/servers/sql/postgresql/ext/timescaledb.nix

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,39 @@
1-
{ lib, stdenv, fetchFromGitHub, cmake, postgresql, openssl, libkrb5, nixosTests, enableUnfree ? true, buildPostgresqlExtension }:
1+
{
2+
buildPostgresqlExtension,
3+
cmake,
4+
enableUnfree ? true,
5+
fetchFromGitHub,
6+
lib,
7+
libkrb5,
8+
nixosTests,
9+
openssl,
10+
postgresql,
11+
stdenv,
12+
}:
213

314
buildPostgresqlExtension rec {
415
pname = "timescaledb${lib.optionalString (!enableUnfree) "-apache"}";
5-
version = "2.14.2";
16+
version = "2.17.2";
617

718
nativeBuildInputs = [ cmake ];
8-
buildInputs = [ openssl libkrb5 ];
19+
buildInputs = [
20+
openssl
21+
libkrb5
22+
];
923

1024
src = fetchFromGitHub {
1125
owner = "timescale";
1226
repo = "timescaledb";
1327
rev = version;
14-
hash = "sha256-gJViEWHtIczvIiQKuvvuwCfWJMxAYoBhCHhD75no6r0=";
28+
hash = "sha256-gPsAebMUBuAwP6Hoi9/vrc2IFsmTbL0wQH1g6/2k2d4=";
1529
};
1630

17-
cmakeFlags = [ "-DSEND_TELEMETRY_DEFAULT=OFF" "-DREGRESS_CHECKS=OFF" "-DTAP_CHECKS=OFF" ]
31+
cmakeFlags =
32+
[
33+
"-DSEND_TELEMETRY_DEFAULT=OFF"
34+
"-DREGRESS_CHECKS=OFF"
35+
"-DTAP_CHECKS=OFF"
36+
]
1837
++ lib.optionals (!enableUnfree) [ "-DAPACHE_ONLY=ON" ]
1938
++ lib.optionals stdenv.hostPlatform.isDarwin [ "-DLINTER=OFF" ];
2039

@@ -38,14 +57,9 @@ buildPostgresqlExtension rec {
3857
description = "Scales PostgreSQL for time-series data via automatic partitioning across time and space";
3958
homepage = "https://www.timescale.com/";
4059
changelog = "https://github.com/timescale/timescaledb/blob/${version}/CHANGELOG.md";
41-
maintainers = [ ];
60+
maintainers = [ maintainers.kirillrdy ];
4261
platforms = postgresql.meta.platforms;
4362
license = with licenses; if enableUnfree then tsl else asl20;
44-
broken = versionOlder postgresql.version "13" ||
45-
# timescaledb supports PostgreSQL 17 from 2.17.0 on:
46-
# https://github.com/timescale/timescaledb/releases/tag/2.17.0
47-
# We can't upgrade to it, yet, because this would imply dropping support for
48-
# PostgreSQL 13, which is a breaking change.
49-
(versionAtLeast postgresql.version "17" && version == "2.14.2");
63+
broken = versionOlder postgresql.version "14";
5064
};
5165
}

pkgs/servers/sql/postgresql/ext/timescaledb_toolkit.nix

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
, buildPgrxExtension
44
, postgresql
55
, nixosTests
6-
, cargo-pgrx_0_10_2
6+
, cargo-pgrx_0_12_6
77
, nix-update-script
88
}:
99

10-
(buildPgrxExtension.override { cargo-pgrx = cargo-pgrx_0_10_2; }) rec {
10+
(buildPgrxExtension.override { cargo-pgrx = cargo-pgrx_0_12_6; }) rec {
1111
inherit postgresql;
1212

1313
pname = "timescaledb_toolkit";
14-
version = "1.18.0";
14+
version = "1.19.0";
1515

1616
src = fetchFromGitHub {
1717
owner = "timescale";
1818
repo = "timescaledb-toolkit";
1919
rev = version;
20-
hash = "sha256-Lm/LFBkG91GeWlJL9RBqP8W0tlhBEeGQ6kXUzzv4xRE=";
20+
hash = "sha256-7yUbtWbYL4AnuUX8OXG4OVqYCY2Lf0pISSTlcFdPqog=";
2121
};
2222

23-
cargoHash = "sha256-LME8oftHmmiN8GU3eTBTSB6m0CE+KtDFRssL1g2Cjm8=";
23+
cargoHash = "sha256-+uD4UU7QwNISQZ7a2kDkY/y3fQWk/K0fFcrFq4yq6RU=";
2424
buildAndTestSubdir = "extension";
2525

2626
passthru = {
@@ -37,8 +37,5 @@
3737
maintainers = with maintainers; [ typetetris ];
3838
platforms = postgresql.meta.platforms;
3939
license = licenses.tsl;
40-
# PostgreSQL 17 support issue upstream: https://github.com/timescale/timescaledb-toolkit/issues/813
41-
# Check after next package update.
42-
broken = versionAtLeast postgresql.version "17" && version == "1.18.0";
4340
};
4441
}

pkgs/top-level/all-packages.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7007,6 +7007,7 @@ with pkgs;
70077007
cargo-pgrx_0_11_2
70087008
cargo-pgrx_0_11_3
70097009
cargo-pgrx_0_12_0_alpha_1
7010+
cargo-pgrx_0_12_6
70107011
;
70117012
cargo-pgrx = cargo-pgrx_0_11_2;
70127013

0 commit comments

Comments
 (0)