Accept upstream plan change in the subselect regression suite
authorTomas Vondra <[email protected]>
Thu, 4 May 2017 18:10:00 +0000 (20:10 +0200)
committerTomas Vondra <[email protected]>
Thu, 4 May 2017 18:22:55 +0000 (20:22 +0200)
This is an expected upstream plan change, where REL9_6_STABLE
switched from Hash Join to Hash Semi Join, and removed one of
the Hash Aggregate nodes.

src/test/regress/expected/subselect.out

index e39e4d65abd8103f53beff8491f860efecb83f91..a7f609874fbfc6726c53a4365220b91ba29a9e38 100644 (file)
@@ -823,29 +823,26 @@ select * from int4_tbl where
 explain (verbose, costs off)
 select * from int4_tbl o where (f1, f1) in
   (select f1, generate_series(1,2) / 10 g from int4_tbl i group by f1);
-                                 QUERY PLAN                                 
-----------------------------------------------------------------------------
+                              QUERY PLAN                              
+----------------------------------------------------------------------
  Remote Subquery Scan on all (datanode_1)
    Output: o.f1
-   ->  Hash Join
+   ->  Hash Semi Join
          Output: o.f1
          Hash Cond: (o.f1 = "ANY_subquery".f1)
          ->  Seq Scan on public.int4_tbl o
                Output: o.f1
          ->  Hash
                Output: "ANY_subquery".f1, "ANY_subquery".g
-               ->  HashAggregate
+               ->  Subquery Scan on "ANY_subquery"
                      Output: "ANY_subquery".f1, "ANY_subquery".g
-                     Group Key: "ANY_subquery".f1, "ANY_subquery".g
-                     ->  Subquery Scan on "ANY_subquery"
-                           Output: "ANY_subquery".f1, "ANY_subquery".g
-                           Filter: ("ANY_subquery".f1 = "ANY_subquery".g)
-                           ->  HashAggregate
-                                 Output: i.f1, (generate_series(1, 2) / 10)
-                                 Group Key: i.f1
-                                 ->  Seq Scan on public.int4_tbl i
-                                       Output: i.f1
-(20 rows)
+                     Filter: ("ANY_subquery".f1 = "ANY_subquery".g)
+                     ->  HashAggregate
+                           Output: i.f1, (generate_series(1, 2) / 10)
+                           Group Key: i.f1
+                           ->  Seq Scan on public.int4_tbl i
+                                 Output: i.f1
+(17 rows)
 
 select * from int4_tbl o where (f1, f1) in
   (select f1, generate_series(1,2) / 10 g from int4_tbl i group by f1);