summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2017-06-29 13:33:01 +0000
committerPavan Deolasee2017-06-29 13:33:01 +0000
commit9775547ff572c9bf76a11a76372ba6a168762de9 (patch)
tree15621aa64705238b1c6ad2a4f7a3c0f27fc62f83
parentab87bf147d60a3ca25bc67b760608558a1dce178 (diff)
Accept expected plan output changes in the 'select' test case
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.
-rw-r--r--src/test/regress/expected/select.out23
-rw-r--r--src/test/regress/sql/select.sql3
2 files changed, 20 insertions, 6 deletions
diff --git a/src/test/regress/expected/select.out b/src/test/regress/expected/select.out
index ef9e1c5129..6fcac88bf9 100644
--- a/src/test/regress/expected/select.out
+++ b/src/test/regress/expected/select.out
@@ -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';
diff --git a/src/test/regress/sql/select.sql b/src/test/regress/sql/select.sql
index a2f29e49d5..c9c84fdfea 100644
--- a/src/test/regress/sql/select.sql
+++ b/src/test/regress/sql/select.sql
@@ -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';