Avoid JIT-related test instability in EXPLAIN ANALYZE

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
This commit is contained in:
David Rowley 2024-07-09 12:46:48 +12:00
parent c8d5d6c78a
commit c048cd992c
2 changed files with 6 additions and 0 deletions

View 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)

View 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)