Last week's patch for make_sort_from_pathkeys wasn't good enough: it has
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Nov 2007 19:25:37 +0000 (19:25 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Nov 2007 19:25:37 +0000 (19:25 +0000)
commit1e8a0141062ca3c18edfb8dd27753399f06560ed
treed6538093a1d99942d917d2cc1569ab6ce0267a62
parent40020dee3433f47484825ebe4e685e1b0bb07912
Last week's patch for make_sort_from_pathkeys wasn't good enough: it has
to be able to discard top-level RelabelType nodes on *both* sides of the
equivalence-class-to-target-list comparison, since make_pathkey_from_sortinfo
might either add or remove a RelabelType.  Also fix the latter to do the
removal case cleanly.  Per example from Peter.
src/backend/optimizer/path/pathkeys.c
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/util/tlist.c
src/include/optimizer/tlist.h