Oct 2019

3 commits
Change MemoryContextMemAllocated to return Size
5 Oct 2019Tomas Vondramaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% surewritten from the discussion, no matching patch

Tom Lane identified the remaining int64 return type in MemoryContextMemAllocated() after the first type correction #23. The commit changes its definition, accumulator and declaration in mcxt.c and memutils.h to Size; neither attachment contains this follow-up.

Use Size instead of int64 to track allocated memory
4 Oct 2019Tomas Vondramaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% surewritten from the discussion, no matching patch

Tom Lane diagnosed unsigned subtraction underflow and the inappropriate int64 accounting field in #19; Tomas Vondra announced the resulting fix in #21. The commit changes counters to Size in memnodes.h, aset.c and generation.c and separates subtraction from addition in AllocSetRealloc(), without a matching attached patch.

Add transparent block-level memory accounting
1 Oct 2019Tomas Vondramaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #171 of 3 reviewers saw the final version

The commit preserves the implementation in #17, adding a 30-line Memory Accounting section to src/backend/utils/mmgr/README and making whitespace adjustments in generation.c and mcxt.c. Tomas Vondra explicitly describes adding the design explanation before pushing in #18.

  • Melanie Plagemansaw an earlier versionLLM analysis, 98% sureMelanie reported the joint review found no further problems in #11 and is credited by the commit's misspelled Reivewed-by trailer, but the memory-wiping logic fixes in #17 followed that review.
  • Soumyadeep Chakrabortysaw an earlier versionLLM analysis, 94% sureThe jointly signed review sent by Melanie in #11 and the commit's misspelled Reivewed-by trailer credit Soumyadeep, who has no separately authored message here, with review preceding the memory-wiping fixes in #17.
  • Tomas Vondrasaw the final versioncommittercommitted the patch

Credits across 3 commits

Author
Jeff Davis1
Reviewer
Tomas Vondracommitter1
Committer
Tomas Vondra3