Skip to content

Commit 853d99a

Browse files
author
Alena Rybakina
committed
Add limiting parameters to generate bitmapscan, hashjoin, mergejoin and material nodes.
1 parent 6cf69af commit 853d99a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

expected/update_functions.out

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ ANALYZE aqo_test2;
1919
CREATE EXTENSION aqo;
2020
SET aqo.join_threshold = 0;
2121
SET aqo.mode='intelligent';
22+
SET enable_material = 'off';
23+
SET enable_hashjoin = 'off';
24+
SET enable_bitmapscan = 'off';
25+
SET enable_mergejoin = 'off';
2226
SELECT count(*) FROM aqo_test1 a, aqo_test2 b WHERE a.a=b.a;
2327
count
2428
-------
@@ -326,8 +330,7 @@ ORDER BY res;
326330
t
327331
t
328332
t
329-
t
330-
(27 rows)
333+
(26 rows)
331334

332335
-- Check if data is the same as in source, no result rows expected.
333336
(TABLE aqo_data_dump EXCEPT TABLE aqo_data)
@@ -369,8 +372,7 @@ ORDER BY res;
369372
t
370373
t
371374
t
372-
t
373-
(27 rows)
375+
(26 rows)
374376

375377
-- Check if data is the same as in source, no result rows expected.
376378
(TABLE aqo_data_dump EXCEPT TABLE aqo_data)

sql/update_functions.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ CREATE EXTENSION aqo;
2222
SET aqo.join_threshold = 0;
2323

2424
SET aqo.mode='intelligent';
25+
SET enable_material = 'off';
26+
SET enable_hashjoin = 'off';
27+
SET enable_bitmapscan = 'off';
28+
SET enable_mergejoin = 'off';
2529

2630
SELECT count(*) FROM aqo_test1 a, aqo_test2 b WHERE a.a=b.a;
2731
SELECT count(*) FROM aqo_test1 a, aqo_test2 b, aqo_test2 c WHERE a.a = b.a AND b.a = c.a;

0 commit comments

Comments
 (0)