mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Save calculated transitionSpace in Agg node.
This will be useful in the upcoming Hash Aggregation work to improve estimates for hash table sizing. Discussion: https://postgr.es/m/37091115219dd522fd9ed67333ee8ed1b7e09443.camel%40j-davis.com
This commit is contained in:
@ -2949,6 +2949,7 @@ create_agg_path(PlannerInfo *root,
|
||||
pathnode->aggstrategy = aggstrategy;
|
||||
pathnode->aggsplit = aggsplit;
|
||||
pathnode->numGroups = numGroups;
|
||||
pathnode->transitionSpace = aggcosts ? aggcosts->transitionSpace : 0;
|
||||
pathnode->groupClause = groupClause;
|
||||
pathnode->qual = qual;
|
||||
|
||||
@ -3036,6 +3037,7 @@ create_groupingsets_path(PlannerInfo *root,
|
||||
pathnode->aggstrategy = aggstrategy;
|
||||
pathnode->rollups = rollups;
|
||||
pathnode->qual = having_qual;
|
||||
pathnode->transitionSpace = agg_costs ? agg_costs->transitionSpace : 0;
|
||||
|
||||
Assert(rollups != NIL);
|
||||
Assert(aggstrategy != AGG_PLAIN || list_length(rollups) == 1);
|
||||
|
Reference in New Issue
Block a user