]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix tests under wal_level=minimal
authorÁlvaro Herrera <alvherre@kurilemu.de>
Tue, 7 Apr 2026 13:14:32 +0000 (15:14 +0200)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Tue, 7 Apr 2026 13:14:32 +0000 (15:14 +0200)
Buildfarm members which have specifically configured to use
wal_level=minimal fail the repack regression tests, which require
wal_level=replica.  Add a temp config file to fix that.

src/test/modules/injection_points/Makefile
src/test/modules/injection_points/extra.conf [new file with mode: 0644]
src/test/modules/injection_points/meson.build

index 2cd7d87c53346b34c19dc2755821dd026367dbe5..f057d143d1abe4a91d1cf8ba654b95312ace2597 100644 (file)
@@ -19,6 +19,9 @@ ISOLATION = basic \
            syscache-update-pruned \
            heap_lock_update
 
+# some isolation tests require wal_level=replica
+ISOLATION_OPTS = --temp-config $(top_srcdir)/src/test/modules/injection_points/extra.conf
+
 # The injection points are cluster-wide, so disable installcheck
 NO_INSTALLCHECK = 1
 
diff --git a/src/test/modules/injection_points/extra.conf b/src/test/modules/injection_points/extra.conf
new file mode 100644 (file)
index 0000000..010abb1
--- /dev/null
@@ -0,0 +1 @@
+wal_level=replica
index a414abb924b6393ae448db5e8078f1fd189ff65e..fb1418e2caa7df3b15ed8f3382798f180ec57145 100644 (file)
@@ -53,5 +53,9 @@ tests += {
     'runningcheck': false, # see syscache-update-pruned
     # Some tests wait for all snapshots, so avoid parallel execution
     'runningcheck-parallel': false,
+    # some tests require wal_level=replica
+    'regress_args': [
+      '--temp-config', files('extra.conf'),
+    ],
   },
 }