mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
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
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user