Prevent generation of invalid plans for RIGHT or FULL joins with multiple
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Apr 2001 00:48:17 +0000 (00:48 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Apr 2001 00:48:17 +0000 (00:48 +0000)
commit0ae6ac6402131c53a54328fab61752f93f26fcfa
treeb168067449a001fa57935f186103016f13008281
parent463710959d33b7a57b37f5c44469cdd8c79fd1e9
Prevent generation of invalid plans for RIGHT or FULL joins with multiple
join clauses.  The mergejoin executor wants all the join clauses to appear
as merge quals, not as extra joinquals, for these kinds of joins.  But the
planner would consider plans in which partially-sorted input paths were
used, leading to only some of the join clauses becoming merge quals.
This is fine for inner/left joins, not fine for right/full joins.
src/backend/optimizer/path/joinpath.c