summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/postgres_fdw/postgres_fdw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c
index 08aca0b4b84..563f1690a18 100644
--- a/contrib/postgres_fdw/postgres_fdw.c
+++ b/contrib/postgres_fdw/postgres_fdw.c
@@ -3976,7 +3976,9 @@ foreign_join_ok(PlannerInfo *root, RelOptInfo *joinrel, JoinType jointype,
/* Separate restrict list into join quals and quals on join relation */
if (IS_OUTER_JOIN(jointype))
- extract_actual_join_clauses(extra->restrictlist, &joinclauses, &otherclauses);
+ extract_actual_join_clauses(extra->restrictlist,
+ joinrel->relids,
+ &joinclauses, &otherclauses);
else
{
/*