Skip to content

Commit b0e62c3

Browse files
author
Commitfest Bot
committed
[CF 5291] Remove an unnecessary check on semijoin_target_ok() on postgres_fdw.c
This branch was automatically generated by a robot using patches from an email thread registered at: https://commitfest.postgresql.org/patch/5291 The branch will be overwritten each time a new patch version is posted to the thread, and also periodically to check for bitrot caused by changes on the master branch. Patch(es): https://www.postgresql.org/message-id/CAHewXN=8aW4hd_W71F7Ua4+_w0=bppuvvTEBFBF6G0NuSXLwUw@mail.gmail.com Author(s): Tender Wang
2 parents 618c64f + 0f737fa commit b0e62c3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

contrib/postgres_fdw/postgres_fdw.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5768,12 +5768,11 @@ semijoin_target_ok(PlannerInfo *root, RelOptInfo *joinrel, RelOptInfo *outerrel,
57685768
if (!IsA(var, Var))
57695769
continue;
57705770

5771-
if (bms_is_member(var->varno, innerrel->relids) &&
5772-
!bms_is_member(var->varno, outerrel->relids))
5771+
if (bms_is_member(var->varno, innerrel->relids))
57735772
{
57745773
/*
57755774
* The planner can create semi-join, which refers to inner rel
5776-
* vars in its target list. However, we deparse semi-join as an
5775+
* vars in its target list. However, we deparse semi-join as an
57775776
* exists() subquery, so can't handle references to inner rel in
57785777
* the target list.
57795778
*/

0 commit comments

Comments
 (0)