mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Extend abbreviated key infrastructure to datum tuplesorts.
Andrew Gierth, reviewed by Peter Geoghegan and by me.
This commit is contained in:
@ -363,10 +363,6 @@ initialize_aggregates(AggState *aggstate,
|
||||
* We use a plain Datum sorter when there's a single input column;
|
||||
* otherwise sort the full tuple. (See comments for
|
||||
* process_ordered_aggregate_single.)
|
||||
*
|
||||
* In the future, we should consider forcing the
|
||||
* tuplesort_begin_heap() case when the abbreviated key
|
||||
* optimization can thereby be used, even when numInputs is 1.
|
||||
*/
|
||||
peraggstate->sortstate =
|
||||
(peraggstate->numInputs == 1) ?
|
||||
|
Reference in New Issue
Block a user