Department of second thoughts: fix newly-added code in planner.c to make real
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Aug 2008 16:03:10 +0000 (16:03 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Aug 2008 16:03:10 +0000 (16:03 +0000)
commit7fa3d70b8bdbf8a0aa4b8ba5def7af5263f9294d
tree7c40e3fd19fbeb16b3159e38d5b96ef320dc2549
parent423e5e704e310893376679a214d9273413b6dcb2
Department of second thoughts: fix newly-added code in planner.c to make real
sure that DISTINCT ON does what it's supposed to, ie, sort by the full ORDER
BY list before unique-ifying.  The error seems masked in simple cases by the
fact that query_planner won't return query pathkeys that only partially match
the requested sort order, but I wouldn't want to bet that it couldn't be
exposed in some way or other.
src/backend/optimizer/plan/planner.c