Mar - Apr 2026

12 commits
Remove HASH_DIRSIZE, always use the default algorithm to select it
3 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% suremodified before commitmoderate changesfrom patchset #30 of 1 reviewer saw the final version

Matches the HASH_DIRSIZE removal in #3, but src/backend/utils/hash/dynahash.c now uses Max(DEF_DIRSIZE, nsegs) rather than nsegs alone. It also simplifies hash_estimate_size(), removes redundant initialization and adapts to the extracted shared-hash helper.

  • Tomas Vondrasaw an earlier versiontrailerTomas identified the stale HASH_DIRSIZE comment in #2, but the directory-sizing logic changed after his review.
Allocate all parts of shmem hash table from a single contiguous area
3 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% suremodified before commitmoderate changesfrom patchset #30 of 1 reviewer saw the final version

Retains the contiguous-region allocator and HASHHDR directory pointer from #3. The committed src/backend/storage/ipc/shmem.c additionally extracts shmem_hash_create() for shared initialization and stores index_size in ShmemAllocatorData; dynahash.c adds an attachment assertion.

  • Tomas Vondrasaw an earlier versiontrailerTomas reviewed the allocator approach and questioned its alignment in #2, before the shared initialization helper and persistent index_size were added.
Prevent shared memory hash tables from growing beyond initial size
3 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% suremodified before commitlight changesfrom patchset #31 of 1 reviewer saw the final version

Implements the HASH_FIXED_SIZE flags and SHMEM_INDEX_SIZE increase from #3. The code differs only in shortened explanatory wording in src/backend/storage/ipc/shmem.c, with the commit description updated for the already-landed lock changes.

  • Tomas Vondrasaw the final versiontrailerTomas said the fixed-size shared-table patch seemed fine in #2, and only light changes followed.
Merge init and max size options on shmem hash tables
3 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 97% surelanded as postedfrom patchset #31 of 1 reviewer saw the final version

Matches the single-size ShmemInitHash API and caller updates in #3, modulo rebasing and whitespace. The smaller lock.c diff follows directly from e1ad034809 already removing init_table_size and preallocating the maximum.

  • Tomas Vondrasaw the final versiontrailerTomas endorsed merging the size parameters in #2, and subsequent adjustments only accommodate the earlier lock-table commit.
Change default of max_locks_per_transactions to 128
3 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #52 of 2 reviewers saw the final version

All six replacements across the five files match the default-limit patch in #5, including guc_parameters.dat, config.sgml and both pg_resetwal defaults.

  • Ashutosh Bapatsaw the final versiontrailerAshutosh checked the affected configuration uses in #8 and explicitly supported retaining the proposed default of 128 in #11.
  • Matthias van de Meentsaw the final versiontrailerMatthias said the default-increase patch looked good and discussed its lock-capacity implications in #6.
Make the lock hash tables fixed-sized
3 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #52 of 2 reviewers saw the final version

The lock.c changes match #5 modulo whitespace: both tables start at max_table_size, init_table_size disappears and HASH_FIXED_SIZE is added.

  • Ashutosh Bapatsaw the final versiontrailerAshutosh examined memory residency and sparse-table performance implications and judged the changes good overall in #8.
  • Matthias van de Meentsaw the final versiontrailerMatthias reviewed fixed allocation and challenged the retained PROCLOCK-to-LOCK ratio in #6 and #9.
Remove 10% safety margin from lock manager hash table estimates
3 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #52 of 2 reviewers saw the final version

Exactly matches the five-line deletion in LockManagerShmemSize() from #5, removing the 10% safety-margin calculation and its comment.

  • Ashutosh Bapatsaw the final versiontrailerAshutosh reviewed the memory-budget changes and gave an overall positive assessment in #8.
  • Matthias van de Meentsaw the final versiontrailerMatthias explicitly marked the safety-margin removals as looking good in #6.
Remove bogus "safety margin" from predicate.c shmem estimates
3 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #52 of 2 reviewers saw the final version

Exactly matches the six-line deletion in PredicateLockShmemSize() from #5, removing the unused 10% safety margin.

  • Ashutosh Bapatsaw the final versiontrailerAshutosh reviewed the proposed memory-budget changes and endorsed the series overall in #8.
  • Matthias van de Meentsaw the final versiontrailerMatthias explicitly marked the safety-margin removals as looking good in #6.
Make ShmemIndex visible in the pg_shmem_allocations view
1 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% suremodified before commitlight changesfrom patchset #31 of 1 reviewer saw the final version

Adds the ShmemIndex self-entry from #3 in src/backend/storage/ipc/shmem.c, rebased to land before contiguous allocation. The remaining edits retain size_t for size, combine the result declaration with initialization and shorten a comment.

  • Tomas Vondrasaw the final versiontrailerTomas said exposing ShmemIndex made sense in #2, and only rebasing and light cleanup followed.
Change the signature of dynahash's alloc function
31 Mar 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% suremodified before commitlight changesfrom patchset #31 of 1 reviewer saw the final version

Preserves the allocator argument plumbing from #3 across shmem.c, dynahash.c and hsearch.h. Committer edits rename DynaHashAlloc's local cxt to hcxt, clarify allocator comments and normalize formatting.

  • Tomas Vondrasaw the final versiontrailerTomas requested a local-looking name for CurrentDynaHashCxt in #2, which was adopted before the remaining light cleanup.
Remove HASH_SEGMENT option
31 Mar 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1Also in: Should we remove unused code?
LLM analysis, 100% surelanded as postedfrom patchset #31 of 1 reviewer saw the final version

The dynahash.c and hsearch.h changes exactly match the HASH_SEGMENT removal in #3, including replacing configurable segment sizes with HASH_SEGSIZE constants.

  • Tomas Vondrasaw the final versiontrailerTomas supported removing HASH_SEGMENT and questioned the constant rename in #2, which Heikki explained in #3.
Use ShmemInitStruct to allocate shmem for semaphores
30 Mar 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #31 of 1 reviewer saw the final version

Exactly matches the semaphore patch in #3: posix_sema.c and sysv_sema.c allocate through ShmemInitStruct("Semaphores", ...) and assert that the allocation is new.

  • Tomas Vondrasaw the final versiontrailerTomas said the semaphore allocation patch seemed fine in #2, and its code remained unchanged.

Credits across 12 commits

Author
Heikki LinnakangasLLM12
Reviewer
Tomas Vondra8
Ashutosh Bapat4
Matthias van de Meent4
Committer
Heikki Linnakangas12

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