nixpkgs/nixos/tests/postgresql
Wolfgang Walther dd5fd6cc22
postgresql: always build with JIT enabled
This changes the build to always enable JIT - but to only enable it at
run-time, when required. This keeps the runtime closure small without
JIT, but allows enabling it without a rebuild. We can do this, because
JIT is actually built as a shared module, which is loaded at run-time.
We put it into a -jit output and only link it into the environment when
requested.

Under the hood, this uses withPackages and adds the "JIT package" -
thus, to be able to use withPackages on top of that, we also need to be
able to apply withPackages repeatedly.

This cuts down the number of NixOS tests in half, because we don't need
to run it for every version with and without JIT anymore. There really
is no point in running everything with llvmjit.so in place, when the
queries are not making use of it anyway.

Also, we only need to build each extension once and not twice, further
reducing the number of rebuilds required for PRs touching postgresql.
2025-04-05 20:00:13 +02:00
..
wal2json
anonymizer.nix postgresql: always build with JIT enabled 2025-04-05 20:00:13 +02:00
citus.nix postgresql: always build with JIT enabled 2025-04-05 20:00:13 +02:00
default.nix nixos/postgresql/citus: fix syscall filter and add test 2025-02-09 18:07:27 -05:00
pgjwt.nix postgresql: always build with JIT enabled 2025-04-05 20:00:13 +02:00
pgvecto-rs.nix postgresql: always build with JIT enabled 2025-04-05 20:00:13 +02:00
postgresql-jit.nix postgresql: always build with JIT enabled 2025-04-05 20:00:13 +02:00
postgresql-tls-client-cert.nix postgresql: always build with JIT enabled 2025-04-05 20:00:13 +02:00
postgresql-wal-receiver.nix postgresql: always build with JIT enabled 2025-04-05 20:00:13 +02:00
postgresql.nix postgresql: always build with JIT enabled 2025-04-05 20:00:13 +02:00
timescaledb.nix postgresql: always build with JIT enabled 2025-04-05 20:00:13 +02:00
tsja.nix postgresql: always build with JIT enabled 2025-04-05 20:00:13 +02:00
wal2json.nix postgresql: always build with JIT enabled 2025-04-05 20:00:13 +02:00