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)
commit1be0601681197fe79a2d2d403c518e7aeff1788a
tree6d686123b9ca4e5dc70efa9dba364a558ddaa307
parentf1528b5154ed68ec37735e7125732a96aa1758e1
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