Cause GROUP BY clause to adopt ordering operators from ORDER BY when
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| 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 |