Обсуждение: pgsql: Rename ExecAggTransReparent, and improve its documentation.

Поиск
Список
Период
Сортировка

pgsql: Rename ExecAggTransReparent, and improve its documentation.

От
Tom Lane
Дата:
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(-)