diff options
author | Robert Haas <rhaas@postgresql.org> | 2017-12-01 13:47:00 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2017-12-01 13:49:11 -0500 |
commit | 950222780535e6d2ea560cd8b3db5308652ddd42 (patch) | |
tree | fd161d778af38928df57b3cc6bc6aac114e095ca /contrib/postgres_fdw/sql | |
parent | 87c37e3291cb75273ccdf4645b9472dd805c4493 (diff) | |
download | postgresql-950222780535e6d2ea560cd8b3db5308652ddd42.tar.gz postgresql-950222780535e6d2ea560cd8b3db5308652ddd42.zip |
postgres_fdw: Fix test that didn't test what it claimed.
Antonin Houska reported that the planner does consider pushing
postgres_fdw_abs() to the remote side, which happens because we make
it shippable earlier in the test case file.
Jeevan Chalke provided this patch, which changes the join
condition to use random(), which is not shippable, instead.
Antonin reviewed the patch.
Discussion: http://postgr.es/m/15265.1511985971@localhost
Diffstat (limited to 'contrib/postgres_fdw/sql')
-rw-r--r-- | contrib/postgres_fdw/sql/postgres_fdw.sql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/postgres_fdw/sql/postgres_fdw.sql b/contrib/postgres_fdw/sql/postgres_fdw.sql index 09869578da9..1df1e3aad0c 100644 --- a/contrib/postgres_fdw/sql/postgres_fdw.sql +++ b/contrib/postgres_fdw/sql/postgres_fdw.sql @@ -829,7 +829,7 @@ drop operator public.<^(int, int); -- Input relation to aggregate push down hook is not safe to pushdown and thus -- the aggregate cannot be pushed down to foreign server. explain (verbose, costs off) -select count(t1.c3) from ft1 t1, ft1 t2 where t1.c1 = postgres_fdw_abs(t1.c2); +select count(t1.c3) from ft2 t1 left join ft2 t2 on (t1.c1 = random() * t2.c2); -- Subquery in FROM clause having aggregate explain (verbose, costs off) |