Cause GROUP BY clause to adopt ordering operators from ORDER BY when

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 996fdb9af1e298ae1ce3729429d2416e41344086
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-06-15T16:42:08Z
Releases: 7.4.1
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.

Files

PathChange+/−
src/backend/parser/analyze.c modified +10 −5
src/backend/parser/parse_clause.c modified +31 −10
src/include/parser/parse_clause.h modified +2 −2