Mar 2023

2 commits
Have the planner account for the Memoize cache key memory
20 Mar 2023David Rowleymaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #30 of 1 reviewer saw the final version

785f709576 retains the planner changes from #3 but drops the redundant src/backend/executor/nodeMemoize.c accounting additions. It also consolidates the width helpers into a static get_expr_width in src/backend/optimizer/path/costsize.c, eliminating the proposed src/include/optimizer/cost.h declaration.

  • Richard Guosaw an earlier versionLLM analysis, 95% sureBefore the planner commit, Richard identified duplicate executor cache-key accounting in #4; the committed version omitted that accounting and reworked the width helpers.
Fix memory leak in Memoize cache key evaluation
20 Mar 2023David Rowleymaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15.3REL_14_STABLE14.8
LLM analysis, 100% surelanded as postedfrom patchset #3

579ee5df14 matches the leak-fix attachment in #3 modulo indentation: prepare_probe_slot in src/backend/executor/nodeMemoize.c switches to ecxt_per_tuple_memory around cache-key expression evaluation and restores the previous context.

Credits across 2 commits

Author
David RowleyLLM2
Reported by
Alexey Ermakov1
Committer
David Rowley2

N LLM means N of the credits come from LLM analysis, not from commit trailers.