]> granicus.if.org Git - postgresql/commit
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)
commitc78248c91d5147a45907cb05d2c424cf4a3a792d
tree90f15830ca72361aaa56f16b6db1428f6ff51007
parent2965400275d05795c143701d07d1ff25822c70ab
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