Accept expected plan output changes in the 'select' test case
authorPavan Deolasee <pavan.deolasee@gmail.com>
Thu, 29 Jun 2017 13:33:01 +0000 (19:03 +0530)
committerPavan Deolasee <pavan.deolasee@gmail.com>
Thu, 29 Jun 2017 13:33:01 +0000 (19:03 +0530)
The change was simply an addition of Remote FQS node on top the existing node.
Since the query runs an explain analyse and we don't yet support printing
analyse information underneath a Remote FQS node, also added another test to
just get explain output and ensure that we get a sane plan.

src/test/regress/expected/select.out
src/test/regress/sql/select.sql

index ef9e1c51291c6a2cdb868bd7328a8a1f6a3de08b..6fcac88bf99d59a94c2e677d57016eaa3fcc555c 100644 (file)
@@ -759,15 +759,26 @@ select * from onek2 where unique2 = 11 and stringu1 = 'ATAAAA';
      494 |      11 |   0 |    2 |   4 |     14 |       4 |       94 |          94 |       494 |      494 |   8 |    9 | ATAAAA   | LAAAAA   | VVVVxx
 (1 row)
 
+-- get the plan for the following query
+explain (costs off, timing off, summary off)
+select * from onek2 where unique2 = 11 and stringu1 = 'ATAAAA';
+                  QUERY PLAN                   
+-----------------------------------------------
+ Remote Fast Query Execution
+   Node/s: datanode_1, datanode_2
+   ->  Index Scan using onek2_u2_prtl on onek2
+         Index Cond: (unique2 = 11)
+         Filter: (stringu1 = 'ATAAAA'::name)
+(5 rows)
+
 -- actually run the query with an analyze to use the partial index
 explain (costs off, analyze on, timing off, summary off)
 select * from onek2 where unique2 = 11 and stringu1 = 'ATAAAA';
-                           QUERY PLAN                            
------------------------------------------------------------------
- Index Scan using onek2_u2_prtl on onek2 (actual rows=1 loops=1)
-   Index Cond: (unique2 = 11)
-   Filter: (stringu1 = 'ATAAAA'::name)
-(3 rows)
+                     QUERY PLAN                      
+-----------------------------------------------------
+ Remote Fast Query Execution (actual rows=1 loops=1)
+   Node/s: datanode_1, datanode_2
+(2 rows)
 
 explain (costs off)
 select unique2 from onek2 where unique2 = 11 and stringu1 = 'ATAAAA';
index a2f29e49d5793f0436dfd38c28759daa9d767e5f..c9c84fdfeaa43d70b016740ceb7e25b3baa44bce 100644 (file)
@@ -201,6 +201,9 @@ SELECT * FROM foo ORDER BY f1 DESC NULLS LAST;
 explain (costs off)
 select * from onek2 where unique2 = 11 and stringu1 = 'ATAAAA';
 select * from onek2 where unique2 = 11 and stringu1 = 'ATAAAA';
+-- get the plan for the following query
+explain (costs off, timing off, summary off)
+select * from onek2 where unique2 = 11 and stringu1 = 'ATAAAA';
 -- actually run the query with an analyze to use the partial index
 explain (costs off, analyze on, timing off, summary off)
 select * from onek2 where unique2 = 11 and stringu1 = 'ATAAAA';