pgsql: Rename ExecAggTransReparent, and improve its documentation. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Rename ExecAggTransReparent, and improve its documentation.
Date
Msg-id E1pqzZO-004hrE-UZ@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Rename ExecAggTransReparent, and improve its documentation.

The name of this function suggests that it ought to reparent R/W
expanded objects to be children of the persistent aggcontext, instead
of copying them.  In fact it does no such thing, and if you try to
make it do so you will see multiple regression failures.  Rename it
to the less-misleading ExecAggCopyTransValue, and add commentary
about why that attractive-sounding optimization won't work.  Also
adjust comments at call sites, some of which were describing logic
that has since been moved into ExecAggCopyTransValue.

Discussion: https://postgr.es/m/3004282.1681930251@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fce3b26e97ca98de054734e2af7d9125661a9b3f

Modified Files
--------------
src/backend/executor/execExprInterp.c | 49 +++++++++++++++++++++++++----------
src/backend/executor/nodeAgg.c        | 14 +++++-----
src/backend/executor/nodeWindowAgg.c  |  6 +++--
src/backend/jit/llvm/llvmjit_expr.c   |  2 +-
src/backend/jit/llvm/llvmjit_types.c  |  2 +-
src/include/executor/execExpr.h       |  6 ++---
6 files changed, 51 insertions(+), 28 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: doc: Update SQL features names
Next
From: Tom Lane
Date:
Subject: pgsql: Fix memory leakage in plpgsql DO blocks that use cast expression