From 0a2bc5d61e713e3fe72438f020eea5fcc90b0f0b Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 24 Nov 2020 10:45:00 +0200 Subject: 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 --- src/include/executor/execExpr.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/include/executor') diff --git a/src/include/executor/execExpr.h b/src/include/executor/execExpr.h index b792de1bc95..abb489e2062 100644 --- a/src/include/executor/execExpr.h +++ b/src/include/executor/execExpr.h @@ -564,8 +564,7 @@ typedef struct ExprEvalStep /* for EEOP_AGGREF */ struct { - /* out-of-line state, modified by nodeAgg.c */ - AggrefExprState *astate; + int aggno; } aggref; /* for EEOP_GROUPING_FUNC */ -- cgit v1.2.3