Avoid JIT-related test instability in EXPLAIN ANALYZE
authorDavid Rowley <[email protected]>
Tue, 9 Jul 2024 00:46:48 +0000 (12:46 +1200)
committerDavid Rowley <[email protected]>
Tue, 9 Jul 2024 00:46:48 +0000 (12:46 +1200)
036bdcec9 added some code to perform some verification on portions of
the planner costs in EXPLAIN ANALYZE but failed to consider that some
buildfarm animals such as bushmaster and taipan are running very low jit
thresholds.  This caused these animals to fail as they were outputting
JIT-related details in EXPLAIN ANALYZE for the newly added tests.

Here we avoid that by disabling JIT for the plans in question.

Discussion: https://postgr.es/m/CAApHDvpxV4rrO3XUCgGS5N9Wg6f2r0ojJPD2tX2FRV-o9sRTJA@mail.gmail.com

src/test/regress/expected/misc_functions.out
src/test/regress/sql/misc_functions.sql

index 78c91eff013a525807e26106012d53d0bf30f1cc..35fb72f302b57eeccd52c38427bae1f3039302c5 100644 (file)
@@ -18,6 +18,9 @@ BEGIN
         analyze_str := 'off';
     END IF;
 
+    -- avoid jit related output by disabling it
+    SET LOCAL jit = 0;
+
     FOR ln IN
         EXECUTE format('explain (analyze %s, costs on, summary off, timing off) %s',
             analyze_str, query)
index f30387f54abeb7a956149f6434914020e098301d..e570783453cd01ade13f3aa7db7e4d46ab027c22 100644 (file)
@@ -20,6 +20,9 @@ BEGIN
         analyze_str := 'off';
     END IF;
 
+    -- avoid jit related output by disabling it
+    SET LOCAL jit = 0;
+
     FOR ln IN
         EXECUTE format('explain (analyze %s, costs on, summary off, timing off) %s',
             analyze_str, query)