mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Move per-agg and per-trans duplicate finding to the planner.
This has the advantage that the cost estimates for aggregates can count the number of calls to transition and final functions correctly. Bump catalog version, because views can contain Aggrefs. Reviewed-by: Andres Freund Discussion: https://www.postgresql.org/message-id/b2e3536b-1dbc-8303-c97e-89cb0b4a9a48%40iki.fi
This commit is contained in:
@ -769,6 +769,8 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
|
||||
aggref->aggkind = aggkind;
|
||||
/* agglevelsup will be set by transformAggregateCall */
|
||||
aggref->aggsplit = AGGSPLIT_SIMPLE; /* planner might change this */
|
||||
aggref->aggno = -1; /* planner will set aggno and aggtransno */
|
||||
aggref->aggtransno = -1;
|
||||
aggref->location = location;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user