Skip to content

Commit

Permalink
fix citusdata#7647 Custom Scan (ColumnarScan): exclude outer_join_rel…
Browse files Browse the repository at this point in the history
…s from CandidateRelids
  • Loading branch information
Ольга Сергеева committed Oct 14, 2024
1 parent f695971 commit 99ce4d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/backend/columnar/columnar_customscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,11 @@ FindCandidateRelids(PlannerInfo *root, RelOptInfo *rel, List *joinClauses)

candidateRelids = bms_del_members(candidateRelids, rel->relids);
candidateRelids = bms_del_members(candidateRelids, rel->lateral_relids);

#if PG_VERSION_NUM >= PG_VERSION_16
candidateRelids = bms_del_members(candidateRelids, root->outer_join_rels);
#endif

return candidateRelids;
}

Expand Down

0 comments on commit 99ce4d2

Please sign in to comment.