]> granicus.if.org Git - postgresql/commit
Cause GROUP BY clause to adopt ordering operators from ORDER BY when
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Jun 2003 16:42:08 +0000 (16:42 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Jun 2003 16:42:08 +0000 (16:42 +0000)
commit996fdb9af1e298ae1ce3729429d2416e41344086
tree32cf3e674e9eb5ab60d925f1408eea7b7c7bae6c
parentda78e3e2eba4e1f54769eecebaf560f14e2711ea
Cause GROUP BY clause to adopt ordering operators from ORDER BY when
both clauses specify the same targets, rather than always using the
default ordering operator.  This allows 'GROUP BY foo ORDER BY foo DESC'
to be done with only one sort step.
src/backend/parser/analyze.c
src/backend/parser/parse_clause.c
src/include/parser/parse_clause.h