Repair bug #4926 "too few pathkeys for mergeclauses". This example shows

Tom Lane <tgl@sss.pgh.pa.us>

Commit: d7bc5e307714b5643a4e5ceb9d5a449ffa0b7213
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-07-17T23:20:15Z
Releases: 8.3.8
Repair bug #4926 "too few pathkeys for mergeclauses".  This example shows
that the sanity checking I added to create_mergejoin_plan() in 8.3 was a
few bricks shy of a load: the mergeclauses could reference pathkeys in a
noncanonical order such as x,y,x, not only cases like x,x,y which is all
that the code had allowed for.  The odd cases only turn up when using
redundant clauses in an outer join condition, which is why no one had
noticed before.

Files