diff --git a/pkgs/development/tools/database/timescaledb-tune/default.nix b/pkgs/development/tools/database/timescaledb-tune/default.nix index 9c24d35cbf88..be29a0457ee0 100644 --- a/pkgs/development/tools/database/timescaledb-tune/default.nix +++ b/pkgs/development/tools/database/timescaledb-tune/default.nix @@ -2,17 +2,20 @@ buildGoModule rec { pname = "timescaledb-tune"; - version = "0.11.2"; + version = "0.12.0"; src = fetchFromGitHub { owner = "timescale"; repo = pname; rev = "v${version}"; - sha256 = "sha256-6xMdOqLfD3NQksmcD7rlTW3xoW2Fi6OmwbpjIj9A/tw="; + sha256 = "sha256-p1SU0wnB2XftuPMbm47EbJ2aZGV9amlk0y7FI0QOBkk="; }; vendorSha256 = "sha256-n2jrg9FiR/gSrbds/QVV8Duf7BTEs36yYi4F3Ve+d0E="; + # Temporary fix of bug: https://github.com/timescale/timescaledb-tune/issues/95 + patches = [ ./fixMinMaxConn.diff ]; + meta = with lib; { description = "A tool for tuning your TimescaleDB for better performance"; homepage = "https://github.com/timescale/timescaledb-tune"; diff --git a/pkgs/development/tools/database/timescaledb-tune/fixMinMaxConn.diff b/pkgs/development/tools/database/timescaledb-tune/fixMinMaxConn.diff new file mode 100644 index 000000000000..3a0110476cce --- /dev/null +++ b/pkgs/development/tools/database/timescaledb-tune/fixMinMaxConn.diff @@ -0,0 +1,13 @@ +diff --git a/pkg/pgtune/misc.go b/pkg/pgtune/misc.go +index 1fceb6e..3e76be5 100644 +--- a/pkg/pgtune/misc.go ++++ b/pkg/pgtune/misc.go +@@ -35,7 +35,7 @@ const ( + // If you want to lower this value, consider that Patroni will not accept anything less than 25 as + // a valid max_connections and will replace it with 100, per + // https://github.com/zalando/patroni/blob/00cc62726d6df25d31f9b0baa082c83cd3f7bef9/patroni/postgresql/config.py#L280 +- minMaxConns = 25 ++ minMaxConns = 20 + ) + + // MaxConnectionsDefault is the recommended default value for max_connections.