summaryrefslogtreecommitdiff
path: root/src/backend/executor/execQual.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-01-30 17:04:31 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2011-01-30 17:05:15 -0500
commit1df57f63f3f60c684aa8918910ac410e9c780713 (patch)
tree7a51e5befb4b87f929ae0c711fa7e37314d0bbb0 /src/backend/executor/execQual.c
parent2fb64d857003c91378ba86b03d753a63ebee95b2 (diff)
Make reduce_outer_joins() smarter about semijoins.
reduce_outer_joins() mistakenly treated a semijoin like a left join for purposes of deciding whether not-null constraints created by the join's quals could be passed down into the join's left-hand side (possibly resulting in outer-join simplification there). Actually, semijoin works like inner join for this purpose, ie, we do not need to see any rows that can't possibly satisfy the quals. Hence, two-line fix to treat semi and inner joins alike. Per observation by Andres Freund about a performance gripe from Yazan Suleiman. Back-patch to 8.4, since this oversight has been there since the current handling of semijoins was implemented.
Diffstat (limited to 'src/backend/executor/execQual.c')
0 files changed, 0 insertions, 0 deletions