pgsql: expression eval: Don't redundantly keep track of AggState. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: expression eval: Don't redundantly keep track of AggState.
Date
Msg-id E1izutT-0007xo-Bq@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
expression eval: Don't redundantly keep track of AggState.

It's already tracked via ExprState->parent, so we don't need to also
include it in ExprEvalStep. When that code originally was written
ExprState->parent didn't exist, but it since has been introduced in
6719b238e8f.

Author: Andres Freund
Discussion: https://postgr.es/m/20191023163849.sosqbfs5yenocez3@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1fdb7f9789c4550204cd62d1746a7deed1dc4c29

Modified Files
--------------
src/backend/executor/execExpr.c       |  5 -----
src/backend/executor/execExprInterp.c | 17 +++++++----------
src/backend/jit/llvm/llvmjit_expr.c   | 23 ++++++++++++-----------
src/include/executor/execExpr.h       |  5 -----
src/include/nodes/execnodes.h         |  1 +
5 files changed, 20 insertions(+), 31 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Fix typo in proc.c
Next
From: Jeff Davis
Date:
Subject: pgsql: Introduce TupleHashTableHash() and LookupTupleHashEntryHash().