nixosTests.postgresql: run tests with JIT as well
This was intended for quite some time already, but ever since enableJIT was changed to be the source of truth of JIT-iness for the PostgreSQL module, this hasn't worked for the tests anymore.
This commit is contained in:
parent
f1e22103a9
commit
9486472352
@ -19,6 +19,7 @@ let
|
|||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
inherit package;
|
inherit package;
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableJIT = lib.hasInfix "-jit-" package.name;
|
||||||
extraPlugins = ps: [ ps.anonymizer ];
|
extraPlugins = ps: [ ps.anonymizer ];
|
||||||
settings.shared_preload_libraries = [ "anon" ];
|
settings.shared_preload_libraries = [ "anon" ];
|
||||||
};
|
};
|
||||||
|
@ -23,6 +23,7 @@ let
|
|||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
inherit package;
|
inherit package;
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableJIT = lib.hasInfix "-jit-" package.name;
|
||||||
extraPlugins =
|
extraPlugins =
|
||||||
ps: with ps; [
|
ps: with ps; [
|
||||||
pgjwt
|
pgjwt
|
||||||
|
@ -24,9 +24,9 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
makeTestFor =
|
makeTestFor =
|
||||||
postgresqlPackage:
|
package:
|
||||||
makeTest {
|
makeTest {
|
||||||
name = "pgvecto-rs-${postgresqlPackage.name}";
|
name = "pgvecto-rs-${package.name}";
|
||||||
meta = with lib.maintainers; {
|
meta = with lib.maintainers; {
|
||||||
maintainers = [ diogotcorreia ];
|
maintainers = [ diogotcorreia ];
|
||||||
};
|
};
|
||||||
@ -35,8 +35,9 @@ let
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
|
inherit package;
|
||||||
enable = true;
|
enable = true;
|
||||||
package = postgresqlPackage;
|
enableJIT = lib.hasInfix "-jit-" package.name;
|
||||||
extraPlugins =
|
extraPlugins =
|
||||||
ps: with ps; [
|
ps: with ps; [
|
||||||
pgvecto-rs
|
pgvecto-rs
|
||||||
|
@ -50,6 +50,7 @@ let
|
|||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
inherit package;
|
inherit package;
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableJIT = lib.hasInfix "-jit-" package.name;
|
||||||
enableTCPIP = true;
|
enableTCPIP = true;
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
{
|
{
|
||||||
|
@ -31,6 +31,7 @@ let
|
|||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
inherit package;
|
inherit package;
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableJIT = lib.hasInfix "-jit-" package.name;
|
||||||
settings = {
|
settings = {
|
||||||
max_replication_slots = 10;
|
max_replication_slots = 10;
|
||||||
max_wal_senders = 10;
|
max_wal_senders = 10;
|
||||||
|
@ -40,8 +40,9 @@ let
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
inherit (package) ;
|
inherit package;
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableJIT = lib.hasInfix "-jit-" package.name;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.postgresqlBackup = {
|
services.postgresqlBackup = {
|
||||||
@ -158,6 +159,7 @@ let
|
|||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
inherit package;
|
inherit package;
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableJIT = lib.hasInfix "-jit-" package.name;
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
{
|
{
|
||||||
name = "all-clauses";
|
name = "all-clauses";
|
||||||
|
@ -53,6 +53,7 @@ let
|
|||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
inherit package;
|
inherit package;
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableJIT = lib.hasInfix "-jit-" package.name;
|
||||||
extraPlugins =
|
extraPlugins =
|
||||||
ps: with ps; [
|
ps: with ps; [
|
||||||
timescaledb
|
timescaledb
|
||||||
|
@ -20,6 +20,7 @@ let
|
|||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
inherit package;
|
inherit package;
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableJIT = lib.hasInfix "-jit-" package.name;
|
||||||
extraPlugins =
|
extraPlugins =
|
||||||
ps: with ps; [
|
ps: with ps; [
|
||||||
tsja
|
tsja
|
||||||
|
@ -16,6 +16,7 @@ let
|
|||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
inherit package;
|
inherit package;
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableJIT = lib.hasInfix "-jit-" package.name;
|
||||||
extraPlugins = with package.pkgs; [ wal2json ];
|
extraPlugins = with package.pkgs; [ wal2json ];
|
||||||
settings = {
|
settings = {
|
||||||
wal_level = "logical";
|
wal_level = "logical";
|
||||||
|
Loading…
Reference in New Issue
Block a user