Skip to content

Commit cf721b2

Browse files
committed
feat: multiple versions for the pg_jsonschema extension
Build multiple versions of the pg_jsonschema extension to on different PostgreSQL versions. Add test for the extensions and their upgrade on PostgreSQL 15 and 17.
1 parent af325c0 commit cf721b2

File tree

9 files changed

+7919
-76
lines changed

9 files changed

+7919
-76
lines changed

flake.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@
6363
inherit (final) writeShellScriptBin;
6464
};
6565

66+
buildPgrxExtension_0_10_2 = prev.buildPgrxExtension.override {
67+
cargo-pgrx = final.cargo-pgrx.cargo-pgrx_0_10_2;
68+
};
69+
6670
buildPgrxExtension_0_11_3 = prev.buildPgrxExtension.override {
6771
cargo-pgrx = final.cargo-pgrx.cargo-pgrx_0_11_3;
6872
};
@@ -146,7 +150,7 @@
146150
./nix/ext/pgsodium.nix
147151
./nix/ext/pg_graphql.nix
148152
./nix/ext/pg_stat_monitor.nix
149-
./nix/ext/pg_jsonschema.nix
153+
./nix/ext/pg_jsonschema
150154
./nix/ext/pgvector.nix
151155
./nix/ext/vault.nix
152156
./nix/ext/hypopg.nix
@@ -1376,6 +1380,7 @@
13761380
psql_15 = makeCheckHarness basePackages.psql_15.bin;
13771381
psql_17 = makeCheckHarness basePackages.psql_17.bin;
13781382
psql_orioledb-17 = makeCheckHarness basePackages.psql_orioledb-17.bin;
1383+
pg_jsonschema = import ./nix/tests/pg_jsonschema.nix { inherit self; inherit pkgs; };
13791384
};
13801385

13811386
# Apps is a list of names of things that can be executed with 'nix run';

nix/cargo-pgrx/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ let
5656
};
5757
in
5858
{
59+
cargo-pgrx_0_10_2 = generic {
60+
version = "0.10.2";
61+
hash = "sha256-FqjfbJmSy5UCpPPPk4bkEyvQCnaH9zYtkI7txgIn+ls=";
62+
cargoHash = "sha256-syZ3cQq8qDHBLvqmNDGoxeK6zXHJ47Jwkw3uhaXNCzI=";
63+
};
5964
cargo-pgrx_0_11_3 = generic {
6065
version = "0.11.3";
6166
hash = "sha256-UHIfwOdXoJvR4Svha6ud0FxahP1wPwUtviUwUnTmLXU=";

nix/ext/pg_jsonschema.nix

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)