diff options
| author | Heikki Linnakangas | 2020-11-24 08:45:00 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2020-11-24 08:45:00 +0000 |
| commit | 0a2bc5d61e713e3fe72438f020eea5fcc90b0f0b (patch) | |
| tree | 8f630f828fa6bbfb5984f037118211cd68d8a50e /src/include/executor/execExpr.h | |
| parent | e522024bd8dd28a0f13dcccfd39170698f45c939 (diff) | |
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
Diffstat (limited to 'src/include/executor/execExpr.h')
| -rw-r--r-- | src/include/executor/execExpr.h | 3 |
1 files changed, 1 insertions, 2 deletions
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 */ |
