Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit853d99a

Browse files
author
Alena Rybakina
committed
Add limiting parameters to generate bitmapscan, hashjoin, mergejoin and material nodes.
1 parent6cf69af commit853d99a

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
SETaqo.join_threshold=0;
2323

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

2630
SELECTcount(*)FROM aqo_test1 a, aqo_test2 bWHEREa.a=b.a;
2731
SELECTcount(*)FROM aqo_test1 a, aqo_test2 b, aqo_test2 cWHEREa.a=b.aANDb.a=c.a;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp