mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Support parallel aggregation.
Parallel workers can now partially aggregate the data and pass the transition values back to the leader, which can combine the partial results to produce the final answer. David Rowley, based on earlier work by Haribabu Kommi. Reviewed by Álvaro Herrera, Tomas Vondra, Amit Kapila, James Sewell, and me.
This commit is contained in:
@ -647,7 +647,8 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
|
||||
Aggref *aggref = makeNode(Aggref);
|
||||
|
||||
aggref->aggfnoid = funcid;
|
||||
aggref->aggtype = rettype;
|
||||
/* default the outputtype to be the same as aggtype */
|
||||
aggref->aggtype = aggref->aggoutputtype = rettype;
|
||||
/* aggcollid and inputcollid will be set by parse_collate.c */
|
||||
/* aggdirectargs and args will be set by transformAggregateCall */
|
||||
/* aggorder and aggdistinct will be set by transformAggregateCall */
|
||||
|
Reference in New Issue
Block a user