Apr 2025

2 commits
Improve accounting for memory used by shared hash tables
2 Apr 2025Tomas Vondramaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #151 of 3 reviewers saw the final version

Lands the hash-table member of #15, retaining consolidated allocations for both shared and private tables. Committer edits rename hash_get_init_size() to hash_get_size() and replace a repeated segment calculation with hctl->nsegs, matching #16.

  • Andres Freundsaw an earlier versiontrailerIn #2, proposed supporting private hash tables and separating allocation from freelist insertion, before subsequent changes to sizing and pointer handling.
  • Nazir Bilal Yavuzsaw an earlier versiontrailerReviewed hash-table comments, formatting, and possible bucket-count overflow in #5, before later pointer, alignment, and preallocation changes.
  • Tomas Vondrasaw the final versiontrailerReviewed pointer arithmetic, alignment, and sizing across #7, #10, and #14, then made and committed the final edits described in #16.
Improve accounting for PredXactList, RWConflictPool and PGPROC
2 Apr 2025Tomas Vondramaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #151 of 3 reviewers saw the final version

Lands the predicate/PGPROC member of #15, excluding its hash-table and padding patches. The predicate.c changes match, while proc.c gains reusable PGProcShmemSize()/FastPathLockShmemSize() calculations and overflow-safe sizing, as explained in #16.

  • Andres Freundsaw an earlier versiontrailerIn #2, recommended combining related allocations and keeping the large fast-path allocation separate; allocation and sizing logic subsequently changed.
  • Nazir Bilal Yavuzno review foundtrailerDespite the commit credit, his review #5 explicitly covers only the hash-table patch, with no review of this component shown.
  • Tomas Vondrasaw the final versiontrailerSupplied zeroing and readability fixes in #7 and #14, then reviewed and committed the final sizing changes described in #16.

Credits across 2 commits

Author
Rahila Syed2
Reviewer
Andres Freund2
Nazir Bilal Yavuz2
Tomas Vondra2
Committer
Tomas Vondra2