Skip to content

Commit 85e07af

Browse files
committed
Improve stability of tests when compiling with --with-llvm
Some tests have been generating diffs when linking pg_hint_plan to LLVM, and generated extra information in the plans without changing their stability. Let's disable JIT in the tests where this happened, for now, improving the stability of the tests. Per issue #199. Reported-by: Shinya Kato Backpatch-through: 17
1 parent 44f73c6 commit 85e07af

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

expected/ut-J.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ SET pg_hint_plan.debug_print TO on;
44
SET client_min_messages TO LOG;
55
SET search_path TO public;
66
SET max_parallel_workers_per_gather TO 0;
7+
SET jit = off;
78
EXPLAIN (COSTS false) SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1;
89
QUERY PLAN
910
------------------------------------

expected/ut-R.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ LOAD 'pg_hint_plan';
22
SET pg_hint_plan.enable_hint TO on;
33
SET pg_hint_plan.debug_print TO on;
44
SET client_min_messages TO LOG;
5+
SET jit = off;
56
SET search_path TO public;
67
SELECT explain_filter('
78
EXPLAIN SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1;

expected/ut-S.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ SET pg_hint_plan.debug_print TO on;
44
SET client_min_messages TO LOG;
55
SET search_path TO public;
66
SET max_parallel_workers_per_gather TO 0;
7+
SET jit = off;
78
EXPLAIN (COSTS false) SELECT * FROM s1.t1 WHERE t1.c1 >= 1;
89
QUERY PLAN
910
---------------------

sql/ut-J.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ SET pg_hint_plan.debug_print TO on;
44
SET client_min_messages TO LOG;
55
SET search_path TO public;
66
SET max_parallel_workers_per_gather TO 0;
7+
SET jit = off;
78

89
EXPLAIN (COSTS false) SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1;
910

sql/ut-R.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ LOAD 'pg_hint_plan';
22
SET pg_hint_plan.enable_hint TO on;
33
SET pg_hint_plan.debug_print TO on;
44
SET client_min_messages TO LOG;
5+
SET jit = off;
56
SET search_path TO public;
67
SELECT explain_filter('
78
EXPLAIN SELECT * FROM s1.t1, s1.t2 WHERE t1.c1 = t2.c1;

sql/ut-S.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ SET pg_hint_plan.debug_print TO on;
44
SET client_min_messages TO LOG;
55
SET search_path TO public;
66
SET max_parallel_workers_per_gather TO 0;
7+
SET jit = off;
78

89
EXPLAIN (COSTS false) SELECT * FROM s1.t1 WHERE t1.c1 >= 1;
910
EXPLAIN (COSTS false) SELECT * FROM s1.t1 WHERE t1.c1 = 1;

0 commit comments

Comments
 (0)