From: Tomas Vondra Date: Sun, 16 Jul 2017 20:11:47 +0000 (+0200) Subject: Accept plan changes in aggregates regression test X-Git-Tag: XL_10_R1BETA1~206 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=0be28e63e484565c6080ea1c6c1be7c6dc25386c;p=postgres-xl.git Accept plan changes in aggregates regression test The plan changes come from the upstream, and XL only adds Remote Fast Query Execution at the top. --- diff --git a/src/test/regress/expected/aggregates.out b/src/test/regress/expected/aggregates.out index e428dcfb44..55aa5ce945 100644 --- a/src/test/regress/expected/aggregates.out +++ b/src/test/regress/expected/aggregates.out @@ -989,33 +989,35 @@ explain (costs off) select a,c from t1 group by a,c,d; explain (costs off) select * from t1 inner join t2 on t1.a = t2.x and t1.b = t2.y group by t1.a,t1.b,t1.c,t1.d,t2.x,t2.y,t2.z; - QUERY PLAN -------------------------------------------------------------- + QUERY PLAN +------------------------------------------------------------ Remote Fast Query Execution Node/s: datanode_1, datanode_2 - -> Group + -> HashAggregate Group Key: t1.a, t1.b, t2.x, t2.y - -> Merge Join - Merge Cond: ((t1.a = t2.x) AND (t1.b = t2.y)) - -> Index Scan using t1_pkey on t1 - -> Index Scan using t2_pkey on t2 -(8 rows) + -> Hash Join + Hash Cond: ((t2.x = t1.a) AND (t2.y = t1.b)) + -> Seq Scan on t2 + -> Hash + -> Seq Scan on t1 +(9 rows) -- Test case where t1 can be optimized but not t2 explain (costs off) select t1.*,t2.x,t2.z from t1 inner join t2 on t1.a = t2.x and t1.b = t2.y group by t1.a,t1.b,t1.c,t1.d,t2.x,t2.z; - QUERY PLAN -------------------------------------------------------------- + QUERY PLAN +------------------------------------------------------------ Remote Fast Query Execution Node/s: datanode_1, datanode_2 -> HashAggregate Group Key: t1.a, t1.b, t2.x, t2.z - -> Merge Join - Merge Cond: ((t1.a = t2.x) AND (t1.b = t2.y)) - -> Index Scan using t1_pkey on t1 - -> Index Scan using t2_pkey on t2 -(8 rows) + -> Hash Join + Hash Cond: ((t2.x = t1.a) AND (t2.y = t1.b)) + -> Seq Scan on t2 + -> Hash + -> Seq Scan on t1 +(9 rows) -- Cannot optimize when PK is deferrable explain (costs off) select * from t3 group by a,b,c;