pgsql: expression eval: Don't redundantly keep track of AggState.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: expression eval: Don't redundantly keep track of AggState.
Date: 2020-02-07 04:05:27
Message-ID: E1izutT-0007xo-Bq@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2020-02-07 04:44:35 pgsql: Introduce TupleHashTableHash() and LookupTupleHashEntryHash().
Previous Message Michael Paquier 2020-02-07 03:42:31 pgsql: Fix typo in proc.c