explain (costs off)
select t <-> 'q0987wertyu0988', t from test_trgm order by t <-> 'q0987wertyu0988' limit 2;
- QUERY PLAN
----------------------------------------------------
+ QUERY PLAN
+---------------------------------------------------------------
Limit
- -> Index Scan using trgm_idx on test_trgm
- Order By: (t <-> 'q0987wertyu0988'::text)
-(3 rows)
+ -> Remote Subquery Scan on all (datanode_1,datanode_2)
+ -> Limit
+ -> Index Scan using trgm_idx on test_trgm
+ Order By: (t <-> 'q0987wertyu0988'::text)
+(5 rows)
select t <-> 'q0987wertyu0988', t from test_trgm order by t <-> 'q0987wertyu0988' limit 2;
?column? | t
set enable_seqscan=off;
explain (costs off)
select * from test2 where t like '%BCD%';
- QUERY PLAN
-------------------------------------------
- Bitmap Heap Scan on test2
- Recheck Cond: (t ~~ '%BCD%'::text)
- -> Bitmap Index Scan on test2_idx_gin
- Index Cond: (t ~~ '%BCD%'::text)
-(4 rows)
+ QUERY PLAN
+------------------------------------------------
+ Remote Fast Query Execution
+ Node/s: datanode_1, datanode_2
+ -> Bitmap Heap Scan on test2
+ Recheck Cond: (t ~~ '%BCD%'::text)
+ -> Bitmap Index Scan on test2_idx_gin
+ Index Cond: (t ~~ '%BCD%'::text)
+(6 rows)
explain (costs off)
select * from test2 where t ilike '%BCD%';
- QUERY PLAN
--------------------------------------------
- Bitmap Heap Scan on test2
- Recheck Cond: (t ~~* '%BCD%'::text)
- -> Bitmap Index Scan on test2_idx_gin
- Index Cond: (t ~~* '%BCD%'::text)
-(4 rows)
+ QUERY PLAN
+-------------------------------------------------
+ Remote Fast Query Execution
+ Node/s: datanode_1, datanode_2
+ -> Bitmap Heap Scan on test2
+ Recheck Cond: (t ~~* '%BCD%'::text)
+ -> Bitmap Index Scan on test2_idx_gin
+ Index Cond: (t ~~* '%BCD%'::text)
+(6 rows)
select * from test2 where t like '%BCD%';
t
explain (costs off)
select * from test2 where t ~ '[abc]{3}';
- QUERY PLAN
---------------------------------------------
- Bitmap Heap Scan on test2
- Recheck Cond: (t ~ '[abc]{3}'::text)
- -> Bitmap Index Scan on test2_idx_gin
- Index Cond: (t ~ '[abc]{3}'::text)
-(4 rows)
+ QUERY PLAN
+--------------------------------------------------
+ Remote Fast Query Execution
+ Node/s: datanode_1, datanode_2
+ -> Bitmap Heap Scan on test2
+ Recheck Cond: (t ~ '[abc]{3}'::text)
+ -> Bitmap Index Scan on test2_idx_gin
+ Index Cond: (t ~ '[abc]{3}'::text)
+(6 rows)
explain (costs off)
select * from test2 where t ~* 'DEF';
- QUERY PLAN
-------------------------------------------
- Bitmap Heap Scan on test2
- Recheck Cond: (t ~* 'DEF'::text)
- -> Bitmap Index Scan on test2_idx_gin
- Index Cond: (t ~* 'DEF'::text)
-(4 rows)
+ QUERY PLAN
+------------------------------------------------
+ Remote Fast Query Execution
+ Node/s: datanode_1, datanode_2
+ -> Bitmap Heap Scan on test2
+ Recheck Cond: (t ~* 'DEF'::text)
+ -> Bitmap Index Scan on test2_idx_gin
+ Index Cond: (t ~* 'DEF'::text)
+(6 rows)
select * from test2 where t ~ '[abc]{3}';
t
set enable_seqscan=off;
explain (costs off)
select * from test2 where t like '%BCD%';
- QUERY PLAN
-------------------------------------------
- Index Scan using test2_idx_gist on test2
- Index Cond: (t ~~ '%BCD%'::text)
-(2 rows)
+ QUERY PLAN
+------------------------------------------------
+ Remote Fast Query Execution
+ Node/s: datanode_1, datanode_2
+ -> Index Scan using test2_idx_gist on test2
+ Index Cond: (t ~~ '%BCD%'::text)
+(4 rows)
explain (costs off)
select * from test2 where t ilike '%BCD%';
- QUERY PLAN
-------------------------------------------
- Index Scan using test2_idx_gist on test2
- Index Cond: (t ~~* '%BCD%'::text)
-(2 rows)
+ QUERY PLAN
+------------------------------------------------
+ Remote Fast Query Execution
+ Node/s: datanode_1, datanode_2
+ -> Index Scan using test2_idx_gist on test2
+ Index Cond: (t ~~* '%BCD%'::text)
+(4 rows)
select * from test2 where t like '%BCD%';
t
explain (costs off)
select * from test2 where t ~ '[abc]{3}';
- QUERY PLAN
-------------------------------------------
- Index Scan using test2_idx_gist on test2
- Index Cond: (t ~ '[abc]{3}'::text)
-(2 rows)
+ QUERY PLAN
+------------------------------------------------
+ Remote Fast Query Execution
+ Node/s: datanode_1, datanode_2
+ -> Index Scan using test2_idx_gist on test2
+ Index Cond: (t ~ '[abc]{3}'::text)
+(4 rows)
explain (costs off)
select * from test2 where t ~* 'DEF';
- QUERY PLAN
-------------------------------------------
- Index Scan using test2_idx_gist on test2
- Index Cond: (t ~* 'DEF'::text)
-(2 rows)
+ QUERY PLAN
+------------------------------------------------
+ Remote Fast Query Execution
+ Node/s: datanode_1, datanode_2
+ -> Index Scan using test2_idx_gist on test2
+ Index Cond: (t ~* 'DEF'::text)
+(4 rows)
select * from test2 where t ~ '[abc]{3}';
t