Skip to content

Commit 32ccff5

Browse files
staaldraadsamrose
andauthored
chore: bump pg_graphql version (#1455)
* chore: bump pg_graphql version * chore: update our nix pkg for pg_graphql too (#1458) * chore: bump version --------- Co-authored-by: samrose <[email protected]>
1 parent 1436451 commit 32ccff5

File tree

6 files changed

+35
-18
lines changed

6 files changed

+35
-18
lines changed

Dockerfile-15

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ARG rum_release=1.3.13
2424
ARG pg_hashids_release=cd0e1b31d52b394a0df64079406a14a4f7387cd6
2525
ARG libsodium_release=1.0.18
2626
ARG pgsodium_release=3.1.6
27-
ARG pg_graphql_release=1.5.1
27+
ARG pg_graphql_release=1.5.11
2828
ARG pg_stat_monitor_release=1.1.1
2929
ARG pg_jsonschema_release=0.1.4
3030
ARG pg_repack_release=1.4.8

Dockerfile-orioledb-17

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ARG rum_release=1.3.13
2424
ARG pg_hashids_release=cd0e1b31d52b394a0df64079406a14a4f7387cd6
2525
ARG libsodium_release=1.0.18
2626
ARG pgsodium_release=3.1.6
27-
ARG pg_graphql_release=1.5.1
27+
ARG pg_graphql_release=1.5.11
2828
ARG pg_stat_monitor_release=1.1.1
2929
ARG pg_jsonschema_release=0.1.4
3030
ARG pg_repack_release=1.4.8

ansible/vars.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ postgres_major:
88

99
# Full version strings for each major version
1010
postgres_release:
11-
postgresorioledb-17: "17.0.1.038-orioledb"
12-
postgres15: "15.8.1.043"
11+
postgresorioledb-17: "17.0.1.039-orioledb"
12+
postgres15: "15.8.1.044"
1313

1414
# Non Postgres Extensions
1515
pgbouncer_release: "1.19.0"

flake.nix

+6
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@
6868
buildPgrxExtension_0_12_6 = prev.buildPgrxExtension.override {
6969
cargo-pgrx = final.cargo-pgrx.cargo-pgrx_0_12_6;
7070
};
71+
72+
buildPgrxExtension_0_12_9 = prev.buildPgrxExtension.override {
73+
cargo-pgrx = final.cargo-pgrx.cargo-pgrx_0_12_9;
74+
};
75+
7176
})
7277
(final: prev: {
7378
postgresql = final.callPackage ./nix/postgresql/default.nix {
@@ -394,6 +399,7 @@
394399
supabase-groonga = supabase-groonga;
395400
cargo-pgrx_0_11_3 = pkgs.cargo-pgrx.cargo-pgrx_0_11_3;
396401
cargo-pgrx_0_12_6 = pkgs.cargo-pgrx.cargo-pgrx_0_12_6;
402+
cargo-pgrx_0_12_9 = pkgs.cargo-pgrx.cargo-pgrx_0_12_9;
397403
# PostgreSQL versions.
398404
psql_15 = postgresVersions.psql_15;
399405
psql_orioledb-17 = postgresVersions.psql_orioledb-17;

nix/cargo-pgrx/default.nix

+5
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,10 @@ in
6666
hash = "sha256-7aQkrApALZe6EoQGVShGBj0UIATnfOy2DytFj9IWdEA=";
6767
cargoHash = "sha256-Di4UldQwAt3xVyvgQT1gUhdvYUVp7n/a72pnX45kP0w=";
6868
};
69+
cargo-pgrx_0_12_9 = generic {
70+
version = "0.12.9";
71+
hash = "sha256-aR3DZAjeEEAjLQfZ0ZxkjLqTVMIEbU0UiZ62T4BkQq8=";
72+
cargoHash = "sha256-53HKhvsKLTa2JCByLEcK3UzWXoM+LTatd98zvS1C9no=";
73+
};
6974
inherit rustPlatform;
7075
}

nix/ext/pg_graphql.nix

+20-14
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,41 @@
1-
{ lib, stdenv, fetchFromGitHub, postgresql, buildPgrxExtension_0_12_6, cargo, rust-bin }:
1+
{ lib, stdenv, fetchFromGitHub, postgresql, buildPgrxExtension_0_12_9, cargo, rust-bin }:
2+
23
let
3-
rustVersion = "1.80.0";
4-
cargo = rust-bin.stable.${rustVersion}.default;
4+
rustVersion = "nightly";
5+
cargo = rust-bin.nightly.latest.default;
56
in
6-
buildPgrxExtension_0_12_6 rec {
7+
buildPgrxExtension_0_12_9 rec {
78
pname = "pg_graphql";
8-
version = "1.5.9";
9+
version = "1.5.11";
910
inherit postgresql;
1011

1112
src = fetchFromGitHub {
1213
owner = "supabase";
1314
repo = pname;
1415
rev = "v${version}";
15-
hash = "sha256-YpLN43FtLhp2cb7cyM+4gEx8GTwsRiKTfxaMq0b8hk0=";
16+
hash = "sha256-BMZc9ui+2J3U24HzZZVCU5+KWhz+5qeUsRGeptiqbek=";
1617
};
1718

1819
nativeBuildInputs = [ cargo ];
1920
buildInputs = [ postgresql ];
2021

21-
CARGO="${cargo}/bin/cargo";
22-
#darwin env needs PGPORT to be unique for build to not clash with other pgrx extensions
22+
CARGO = "${cargo}/bin/cargo";
23+
24+
cargoLock = {
25+
lockFile = "${src}/Cargo.lock";
26+
};
27+
# Setting RUSTFLAGS in env to ensure it's available for all phases
2328
env = lib.optionalAttrs stdenv.isDarwin {
2429
POSTGRES_LIB = "${postgresql}/lib";
25-
RUSTFLAGS = "-C link-arg=-undefined -C link-arg=dynamic_lookup";
2630
PGPORT = "5434";
31+
RUSTFLAGS = "-C link-arg=-undefined -C link-arg=dynamic_lookup";
32+
NIX_BUILD_CORES = "4"; # Limit parallel jobs
33+
CARGO_BUILD_JOBS = "4"; # Limit cargo parallelism
2734
};
28-
cargoHash = "sha256-d2RSHtJgbYlOvArjOTaeYoca01UyWPUEO5vhktxxB6U=";
35+
CARGO_BUILD_RUSTFLAGS = "--cfg tokio_unstable -C debuginfo=0";
36+
CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG = true;
2937

30-
# FIXME (aseipp): disable the tests since they try to install .control
31-
# files into the wrong spot, aside from that the one main test seems
32-
# to work, though
38+
3339
doCheck = false;
3440

3541
meta = with lib; {
@@ -39,4 +45,4 @@ buildPgrxExtension_0_12_6 rec {
3945
platforms = postgresql.meta.platforms;
4046
license = licenses.postgresql;
4147
};
42-
}
48+
}

0 commit comments

Comments
 (0)