]> granicus.if.org Git - postgresql/commit
Remove optimization whereby parser would make only one sort-list entry
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Aug 2002 18:46:15 +0000 (18:46 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Aug 2002 18:46:15 +0000 (18:46 +0000)
commit22bfa720688c4343ab98c4853466c4011a048204
tree8d848a55ad6488657b582101b764607b6766a0c9
parent315a9ca32e0de215f9822aec1e4cbe52c94fe09c
Remove optimization whereby parser would make only one sort-list entry
when two equal() targetlist items were to be added to an ORDER BY or
DISTINCT list.  Although indeed this would make sorting fractionally
faster by sometimes saving a comparison, it confuses the heck out of
later stages of processing, because it makes it look like the user
wrote DISTINCT ON rather than DISTINCT.  Bug reported by joe@piscitella.com.
src/backend/parser/parse_clause.c