diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-10-24 22:36:24 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-10-24 22:36:24 -0400 |
commit | f5d6bce63ceb3c59a964814bb0df5a0648e750e5 (patch) | |
tree | f25693bd497246dcb02159599a27ca31110bf9c8 /contrib/postgres_fdw/sql/postgres_fdw.sql | |
parent | 2dde01ccbfb4c53c7edd28a6836ba47303fea0ba (diff) | |
download | postgresql-f5d6bce63ceb3c59a964814bb0df5a0648e750e5.tar.gz postgresql-f5d6bce63ceb3c59a964814bb0df5a0648e750e5.zip |
postgres_fdw: Try again to stabilize aggregate pushdown regression tests.
A query that only aggregates one row isn't a great argument for pushdown,
and buildfarm member brolga decides against it. Adjust the query a bit
in the hopes of getting remote aggregation to win consistently.
Jeevan Chalke, per suggestion from Tom Lane
Diffstat (limited to 'contrib/postgres_fdw/sql/postgres_fdw.sql')
-rw-r--r-- | contrib/postgres_fdw/sql/postgres_fdw.sql | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/postgres_fdw/sql/postgres_fdw.sql b/contrib/postgres_fdw/sql/postgres_fdw.sql index bb9d41a1b33..f48743c390d 100644 --- a/contrib/postgres_fdw/sql/postgres_fdw.sql +++ b/contrib/postgres_fdw/sql/postgres_fdw.sql @@ -808,8 +808,8 @@ reset enable_hashagg; -- Check with placeHolderVars explain (verbose, costs off) -select q.b, count(ft4.c1), sum(q.a) from ft4 left join (select min(13), avg(ft1.c1), sum(ft2.c1) from ft1 right join ft2 on (ft1.c1 = ft2.c1) where ft1.c1 = 12) q(a, b, c) on (ft4.c1 = q.b) where ft4.c1 between 10 and 15 group by q.b order by 1 nulls last, 2; -select q.b, count(ft4.c1), sum(q.a) from ft4 left join (select min(13), avg(ft1.c1), sum(ft2.c1) from ft1 right join ft2 on (ft1.c1 = ft2.c1) where ft1.c1 = 12) q(a, b, c) on (ft4.c1 = q.b) where ft4.c1 between 10 and 15 group by q.b order by 1 nulls last, 2; +select sum(q.a), count(q.b) from ft4 left join (select 13, avg(ft1.c1), sum(ft2.c1) from ft1 right join ft2 on (ft1.c1 = ft2.c1)) q(a, b, c) on (ft4.c1 <= q.b); +select sum(q.a), count(q.b) from ft4 left join (select 13, avg(ft1.c1), sum(ft2.c1) from ft1 right join ft2 on (ft1.c1 = ft2.c1)) q(a, b, c) on (ft4.c1 <= q.b); -- Not supported cases |