Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c048cd9

Browse files
committed
Avoid JIT-related test instability in EXPLAIN ANALYZE
036bdce 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
1 parent c8d5d6c commit c048cd9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/test/regress/expected/misc_functions.out

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ BEGIN
1818
analyze_str := 'off';
1919
END IF;
2020

21+
-- avoid jit related output by disabling it
22+
SET LOCAL jit = 0;
23+
2124
FOR ln IN
2225
EXECUTE format('explain (analyze %s, costs on, summary off, timing off) %s',
2326
analyze_str, query)

src/test/regress/sql/misc_functions.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ BEGIN
2020
analyze_str := 'off';
2121
END IF;
2222

23+
-- avoid jit related output by disabling it
24+
SET LOCAL jit = 0;
25+
2326
FOR ln IN
2427
EXECUTE format('explain (analyze %s, costs on, summary off, timing off) %s',
2528
analyze_str, query)

0 commit comments

Comments
 (0)