Fix an oversight in mergejoin planning: the planner would reject a
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Aug 2006 17:06:37 +0000 (17:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Aug 2006 17:06:37 +0000 (17:06 +0000)
commit13bc12218d043a7e19eda8ca2c449d4d77e03d65
tree4dd5da4100664bbcad4e909bebb15792cad238c7
parent7b00f104203d7ffd930458adbf2e36078ad64b2e
Fix an oversight in mergejoin planning: the planner would reject a
mergejoin possibility where the inner rel was less well sorted than
the outer (ie, it matches some but not all of the merge clauses that
can work with the outer), if the inner path in question is also the
overall cheapest path for its rel.  This is an old bug, but I'm not
sure it's worth back-patching, because it's such a corner case.
Noted while investigating a test case from Peter Hardman.
src/backend/optimizer/path/joinpath.c