summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2017-08-30 22:35:57 +0000
committerTomas Vondra2017-08-30 22:35:57 +0000
commitb3cab1e648c9ff5f2a14cafa56a921aa980572f0 (patch)
treeac744d6ea139bcef1f1b914cb710b31ffcbc8b3d
parente71c1dd42ae9c47023f3f9aee60d6663fb1474c1 (diff)
Accept plan changes in bloom contrib module
The changes are fairly simple and generally expected due to distributing upstream queries, so adding either Remote Fast Query Execution or Remote Subquery Scan nodes.
-rw-r--r--contrib/bloom/expected/bloom.out108
1 files changed, 60 insertions, 48 deletions
diff --git a/contrib/bloom/expected/bloom.out b/contrib/bloom/expected/bloom.out
index cbc50f757b..c1dff9593e 100644
--- a/contrib/bloom/expected/bloom.out
+++ b/contrib/bloom/expected/bloom.out
@@ -30,34 +30,40 @@ SET enable_seqscan=off;
SET enable_bitmapscan=on;
SET enable_indexscan=on;
EXPLAIN (COSTS OFF) SELECT count(*) FROM tst WHERE i = 7;
- QUERY PLAN
--------------------------------------------
- Aggregate
- -> Bitmap Heap Scan on tst
- Recheck Cond: (i = 7)
- -> Bitmap Index Scan on bloomidx
- Index Cond: (i = 7)
-(5 rows)
+ QUERY PLAN
+-------------------------------------------------
+ Remote Fast Query Execution
+ Node/s: datanode_2
+ -> Aggregate
+ -> Bitmap Heap Scan on tst
+ Recheck Cond: (i = 7)
+ -> Bitmap Index Scan on bloomidx
+ Index Cond: (i = 7)
+(7 rows)
EXPLAIN (COSTS OFF) SELECT count(*) FROM tst WHERE t = '5';
- QUERY PLAN
--------------------------------------------
- Aggregate
- -> Bitmap Heap Scan on tst
- Recheck Cond: (t = '5'::text)
- -> Bitmap Index Scan on bloomidx
- Index Cond: (t = '5'::text)
-(5 rows)
+ QUERY PLAN
+-----------------------------------------------------------
+ Finalize Aggregate
+ -> Remote Subquery Scan on all (datanode_1,datanode_2)
+ -> Partial Aggregate
+ -> Bitmap Heap Scan on tst
+ Recheck Cond: (t = '5'::text)
+ -> Bitmap Index Scan on bloomidx
+ Index Cond: (t = '5'::text)
+(7 rows)
EXPLAIN (COSTS OFF) SELECT count(*) FROM tst WHERE i = 7 AND t = '5';
- QUERY PLAN
----------------------------------------------------------
- Aggregate
- -> Bitmap Heap Scan on tst
- Recheck Cond: ((i = 7) AND (t = '5'::text))
- -> Bitmap Index Scan on bloomidx
- Index Cond: ((i = 7) AND (t = '5'::text))
-(5 rows)
+ QUERY PLAN
+---------------------------------------------------------------
+ Remote Fast Query Execution
+ Node/s: datanode_2
+ -> Aggregate
+ -> Bitmap Heap Scan on tst
+ Recheck Cond: ((i = 7) AND (t = '5'::text))
+ -> Bitmap Index Scan on bloomidx
+ Index Cond: ((i = 7) AND (t = '5'::text))
+(7 rows)
SELECT count(*) FROM tst WHERE i = 7;
count
@@ -149,34 +155,40 @@ SET enable_seqscan=off;
SET enable_bitmapscan=on;
SET enable_indexscan=on;
EXPLAIN (COSTS OFF) SELECT count(*) FROM tstu WHERE i = 7;
- QUERY PLAN
---------------------------------------------
- Aggregate
- -> Bitmap Heap Scan on tstu
- Recheck Cond: (i = 7)
- -> Bitmap Index Scan on bloomidxu
- Index Cond: (i = 7)
-(5 rows)
+ QUERY PLAN
+--------------------------------------------------
+ Remote Fast Query Execution
+ Node/s: datanode_2
+ -> Aggregate
+ -> Bitmap Heap Scan on tstu
+ Recheck Cond: (i = 7)
+ -> Bitmap Index Scan on bloomidxu
+ Index Cond: (i = 7)
+(7 rows)
EXPLAIN (COSTS OFF) SELECT count(*) FROM tstu WHERE t = '5';
- QUERY PLAN
---------------------------------------------
- Aggregate
- -> Bitmap Heap Scan on tstu
- Recheck Cond: (t = '5'::text)
- -> Bitmap Index Scan on bloomidxu
- Index Cond: (t = '5'::text)
-(5 rows)
+ QUERY PLAN
+-----------------------------------------------------------
+ Finalize Aggregate
+ -> Remote Subquery Scan on all (datanode_1,datanode_2)
+ -> Partial Aggregate
+ -> Bitmap Heap Scan on tstu
+ Recheck Cond: (t = '5'::text)
+ -> Bitmap Index Scan on bloomidxu
+ Index Cond: (t = '5'::text)
+(7 rows)
EXPLAIN (COSTS OFF) SELECT count(*) FROM tstu WHERE i = 7 AND t = '5';
- QUERY PLAN
----------------------------------------------------------
- Aggregate
- -> Bitmap Heap Scan on tstu
- Recheck Cond: ((i = 7) AND (t = '5'::text))
- -> Bitmap Index Scan on bloomidxu
- Index Cond: ((i = 7) AND (t = '5'::text))
-(5 rows)
+ QUERY PLAN
+---------------------------------------------------------------
+ Remote Fast Query Execution
+ Node/s: datanode_2
+ -> Aggregate
+ -> Bitmap Heap Scan on tstu
+ Recheck Cond: ((i = 7) AND (t = '5'::text))
+ -> Bitmap Index Scan on bloomidxu
+ Index Cond: ((i = 7) AND (t = '5'::text))
+(7 rows)
SELECT count(*) FROM tstu WHERE i = 7;
count