Nov 2025

2 commits
Refactor shared memory allocation for semaphores
6 Nov 2025Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #31 of 2 reviewers saw the final version

aa9c5fd3e3 matches the refactoring patch in #3, with an updated CalculateShmemSize() comment and ShmemAllocUnlocked() made static in src/backend/storage/ipc/shmem.c and removed from src/include/storage/shmem.h. Heikki confirms these minor edits in #5.

  • Thomas Munrosaw an earlier versionLLM analysis, 84% sureThomas endorsed the cleanup and proposed separating the master refactoring from a backpatchable comment in #2, before #3 relocated initialization into InitProcGlobal() and revised shared-memory sizing.
  • Heikki Linnakangassaw the final versioncommittercommitted the patch
Add comment to explain why PGReserveSemaphores() is called early
6 Nov 2025Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1REL_18_STABLE18.1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #32 of 2 reviewers saw the final version

daf3d99d2b implements the comment-only patch from #3 in src/backend/storage/ipc/ipci.c, shortening its explanation to the historical need to initialize semaphores before emulated spinlocks.

  • Thomas Munrosaw the final versionLLM analysis, 95% sureIn response to #1, Thomas proposed the historical-reasons comment and PostgreSQL 18 backpatch in #2, which #3 implemented and the commit retained with shorter wording.
  • Heikki Linnakangassaw the final versioncommittercommitted the patch

Credits across 2 commits

Author
Ashutosh Bapat2
Reviewer
Heikki Linnakangascommitter2
Committer
Heikki Linnakangas2