Accept expected out changes for 'create_index' test case
authorPavan Deolasee <[email protected]>
Wed, 28 Jun 2017 09:32:18 +0000 (15:02 +0530)
committerPavan Deolasee <[email protected]>
Wed, 28 Jun 2017 09:32:18 +0000 (15:02 +0530)
It simply adds a new Remote Subquery Scan or Remote FQS node on top of the plan
obtained on PG

src/test/regress/expected/create_index.out

index bccb6920dd20ea511f2aac5931742384773c70b1..acf85f14c67ce4a28444f9de321d5faccb53b7f5 100644 (file)
@@ -3057,41 +3057,49 @@ explain (costs off)
 create temp table boolindex (b bool, i int, unique(b, i), junk float);
 explain (costs off)
   select * from boolindex order by b, i limit 10;
-                      QUERY PLAN                       
--------------------------------------------------------
+                            QUERY PLAN                             
+-------------------------------------------------------------------
  Limit
-   ->  Index Scan using boolindex_b_i_key on boolindex
-(2 rows)
+   ->  Remote Subquery Scan on all (datanode_1,datanode_2)
+         ->  Limit
+               ->  Index Scan using boolindex_b_i_key on boolindex
+(4 rows)
 
 explain (costs off)
   select * from boolindex where b order by i limit 10;
-                      QUERY PLAN                       
--------------------------------------------------------
+                            QUERY PLAN                             
+-------------------------------------------------------------------
  Limit
-   ->  Index Scan using boolindex_b_i_key on boolindex
-         Index Cond: (b = true)
-         Filter: b
-(4 rows)
+   ->  Remote Subquery Scan on all (datanode_1,datanode_2)
+         ->  Limit
+               ->  Index Scan using boolindex_b_i_key on boolindex
+                     Index Cond: (b = true)
+                     Filter: b
+(6 rows)
 
 explain (costs off)
   select * from boolindex where b = true order by i desc limit 10;
-                           QUERY PLAN                           
-----------------------------------------------------------------
- Limit
-   ->  Index Scan Backward using boolindex_b_i_key on boolindex
-         Index Cond: (b = true)
-         Filter: b
-(4 rows)
+                              QUERY PLAN                              
+----------------------------------------------------------------------
+ Remote Fast Query Execution
+   Node/s: datanode_1
+   ->  Limit
+         ->  Index Scan Backward using boolindex_b_i_key on boolindex
+               Index Cond: (b = true)
+               Filter: b
+(6 rows)
 
 explain (costs off)
   select * from boolindex where not b order by i limit 10;
-                      QUERY PLAN                       
--------------------------------------------------------
+                            QUERY PLAN                             
+-------------------------------------------------------------------
  Limit
-   ->  Index Scan using boolindex_b_i_key on boolindex
-         Index Cond: (b = false)
-         Filter: (NOT b)
-(4 rows)
+   ->  Remote Subquery Scan on all (datanode_1,datanode_2)
+         ->  Limit
+               ->  Index Scan using boolindex_b_i_key on boolindex
+                     Index Cond: (b = false)
+                     Filter: (NOT b)
+(6 rows)
 
 --
 -- REINDEX (VERBOSE)