Jul 2026

1 commit
Cleanup comments/docs around the new shmem request callbacks
7 Jul 2026Heikki LinnakangasmasterunreleasedREL_19_STABLE19beta2
LLM analysis, 100% surelanded as postedfrom patchset #851 of 1 reviewer saw the final version

The changed lines in doc/src/sgml/xfunc.sgml and src/backend/storage/ipc/shmem.c match #85, explicitly identifying ShmemIndexLock and improving the callback error text.

  • Ashutosh Bapatsaw the final versiontrailerAccepted the clarified locking contract in #87 after reviewing #85.

Mar - Apr 2026

18 commits
Tidy up #ifdef USE_INJECTION_POINTS guards
7 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surewritten from the discussion, no matching patch0 of 1 reviewer saw the final version

Dagfinn reported the redundant USE_INJECTION_POINTS guard in #74; Heikki confirmed removing it and moving the subsystems.h include inside the guard in #75, matching the four changed lines.

  • Dagfinn Ilmari MannsÃ¥kersaw an earlier versionLLM analysis, 93% sureIdentified the redundant guard in landed code in #74, directly prompting this unattached fix; under the no-source rule his review predates the later resizing series ending at #93.
Convert all remaining subsystems to use the new shmem allocation API
5 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #702 of 3 reviewers saw the final version

All 2,135 added and removed lines match the remaining-subsystems patch in #70, covering transaction, replication, activity, injection-point, and test-module conversions.

  • Ashutosh Bapatsaw the final versiontrailerEyeballed the remaining conversions and proposed replication-origin assertions in #50, with only light subsequent changes to this component.
  • Matthias van de Meentsaw the final versiontrailerExamined XLOGShmemRequest allocation patterns in #49, and the suggested further cleanup was explicitly deferred in #68.
  • Daniel Gustafssonsaw an earlier versiontrailerReviewed the conversion series and questioned LocalControlFile handling in #33, before later expansion and regrouping of the conversions.
Convert buffer manager to use the new shmem allocation functions
5 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #701 of 3 reviewers saw the final version

The 311 changed lines match the buffer-manager patch in #70, including separate subsystem registrations for the buffer strategy and mapping table.

  • Ashutosh Bapatsaw the final versiontrailerExplicitly praised the separation of StrategyControl and buffer lookup initialization in #50, before only light API-call changes.
  • Matthias van de Meentno review foundtrailerExplicitly left the buffer-manager patch among the unread later patches in #52, with no subsequent review shown.
  • Daniel Gustafssonsaw an earlier versiontrailerReviewed the earlier conversion series in #33, before buffer strategy and mapping initialization were reorganized into independent subsystems.
Add alignment option to ShmemRequestStruct()
5 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #700 of 3 reviewers saw the final version

Derives from the alignment patch in #70, but ShmemGetRequestedSize() now aligns the allocation's starting offset before adding its size, rather than aligning the resulting end offset.

  • Ashutosh Bapatsaw an earlier versiontrailerRequested validation of power-of-two alignment in #50, before the final sizing calculation was changed.
  • Matthias van de Meentsaw an earlier versiontrailerReviewed alignment and suggested packing allocations in #44, before the final padding-order correction.
  • Daniel Gustafssonsaw an earlier versiontrailerReviewed the series including alignment in #33, before validation and allocation-padding logic changed.
Convert AIO to use the new shmem allocation functions
5 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #700 of 3 reviewers saw the final version

Uses the AIO conversion from #70, but src/backend/storage/aio/method_worker.c requests submission-queue and worker-control memory separately, removing the combined allocation and secondary-pointer attach callback.

  • Ashutosh Bapatno review foundtrailerReviewed test_aio's injection-point setup in #41, but no review of the separate core AIO allocation conversion is shown.
  • Matthias van de Meentno review foundtrailerExplicitly marked the AIO conversion as still to be reviewed in #52, with no later review shown.
  • Daniel Gustafssonsaw an earlier versiontrailerReviewed the earlier conversion series in #33, before the worker-allocation implementation changed.
Convert SLRUs to use the new shmem allocation functions
5 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% suremodified before commitlight changesfrom patchset #702 of 3 reviewers saw the final version

Matches the SLRU conversion in #70 with comment cleanup, prototype parameter renaming, and movement of a predicate-size calculation; neither constification patch from #69 is included.

  • Ashutosh Bapatsaw the final versiontrailerReviewed SLRU behavior and proposed initialization deduplication in #58, correcting his incremental attachment in #64, after which only light changes followed.
  • Matthias van de Meentsaw the final versiontrailerReviewed SLRU signatures and comment placement in #52 and supplied optional constification patches in #69.
  • Daniel Gustafssonsaw an earlier versiontrailerReviewed the original SLRU conversion and identified a stray comment marker in #33, before options and descriptor handling were redesigned.
Refactor shmem initialization code in predicate.c
5 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #703 of 3 reviewers saw the final version

The 217 changed lines in src/backend/storage/lmgr/predicate.c match #70, combining SerialInit inlining with movement of initialization after allocation.

  • Ashutosh Bapatsaw the final versiontrailerReviewed the predicate refactorings and recommended combining them in #29, with the same refactoring retained in the final patch.
  • Matthias van de Meentsaw the final versiontrailerMarked both predicate refactoring patches LGTM in #52, before their consolidation.
  • Daniel Gustafssonsaw the final versiontrailerReported reviewing the series without finding issues in #33, with the predicate preparation later consolidated without a substantive redesign.
Use the new shmem allocation functions in a few core subsystems
5 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #701 of 3 reviewers saw the final version

The core-subsystem patch in #70 matches the committed hunks, including ProcGlobal, DSM, process signals, invalidation, and transaction-variable initialization.

  • Ashutosh Bapatsaw an earlier versiontrailerReviewed DSM and ProcGlobal initialization in #20, #41, and #43, before descriptor removal changed how request sizes were retained.
  • Matthias van de Meentsaw the final versiontrailerMarked the core-subsystem conversion LGTM with naming and duplication nits in #52, and its final hunks are unchanged.
  • Daniel Gustafssonsaw an earlier versiontrailerReviewed the core conversion and identified a redundant assertion in #33, before the later request-options and descriptor changes.
Convert lwlock.c to use the new shmem allocation functions
5 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #700 of 3 reviewers saw the final version

The 156 changed lines match the LWLock conversion in #70, including deferred sizing and the SHMEM_ATTACH_UNKNOWN_SIZE attachment path.

  • Ashutosh Bapatno review foundtrailerReviewed the separate CreateLWLocks placement prerequisite in #29, but no review specifically covers the later LWLock callback conversion.
  • Matthias van de Meentsaw an earlier versiontrailerFound the named-tranche sizing-order bug in #52, which prompted substantive request-order and size-check changes described in #60.
  • Daniel Gustafssonno review foundtrailerHis review in #33 predates the separately introduced lwlock.c callback conversion, and no later review of it appears.
Introduce a registry of built-in shmem subsystems
5 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #703 of 3 reviewers saw the final version

The 94 changed lines match the built-in subsystem registry patch in #70, adding subsystemlist.h and the callback-registration infrastructure.

  • Ashutosh Bapatsaw the final versiontrailerSuggested calling RegisterShmemCallbacks directly through the subsystem macro in #41, which Heikki accepted in #42.
  • Matthias van de Meentsaw the final versiontrailerMarked the registry patch LGTM in #52, before only small declaration and placement adjustments.
  • Daniel Gustafssonsaw the final versiontrailerReviewed the series including built-in registration in #33, with subsequent changes limited to equivalent registration organization and API syntax.
Convert pg_stat_statements to use the new shmem allocation functions
5 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #703 of 3 reviewers saw the final version

The 173 changed lines in contrib/pg_stat_statements/pg_stat_statements.c match #70, including its embedded LWLock and request/init callbacks.

  • Ashutosh Bapatsaw the final versiontrailerReviewed pg_stat_statements initialization, assertions, and loading its saved statistics in #41, before light API-call adjustments.
  • Matthias van de Meentsaw the final versiontrailerMarked the pg_stat_statements conversion LGTM and discussed formatting and zero initialization in #52, with unchanged final hunks.
  • Daniel Gustafssonsaw the final versiontrailerReviewed the conversion series in #33, after the pg_stat_statements callback design was established and before chiefly syntactic call-site changes.
Add a test module to test after-startup shmem allocations
5 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #703 of 3 reviewers saw the final version

All 222 added lines match the test_shmem module patch in #70, testing allocations by extensions loaded after startup.

  • Ashutosh Bapatsaw the final versiontrailerReviewed test coverage and EXEC_BACKEND distinctions in #41 and requested NO_INSTALLCHECK in #50.
  • Matthias van de Meentsaw the final versiontrailerCalled the test module otherwise LGTM while suggesting duplicate-registration coverage in #49, before only light test and API adaptations.
  • Daniel Gustafssonsaw the final versiontrailerReviewed the series including the after-startup test module in #33, before test refinements and API-syntax changes.
Introduce a new mechanism for registering shared memory areas
5 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #700 of 4 reviewers saw the final version

Derives from the registration patch in #70, with documentation examples and stale typedefs corrected, one EXEC_BACKEND callback argument renamed to opaque_arg, and comment changes redistributed to the preparatory commit.

  • Matthias van de Meentsaw an earlier versiontrailerFound request-list type confusion and challenged descriptor and callback design in #44, #49, and #52, before the last initialization-order fixes.
  • Zsolt Parragisaw an earlier versiontrailerIdentified missing DSM sizing, incorrect hash flags, double-counted memory, and a documentation-call error in #18, before the callback architecture was redesigned.
  • Robert Haassaw an earlier versiontrailerChallenged lifecycle ergonomics and descriptor semantics in #23, #25, and #31, leading to grouped callbacks and copied options.
  • Daniel Gustafssonsaw an earlier versiontrailerReviewed API behavior and documentation in #33, endorsing copied options before later handle removal and after-startup logic changes.
Move some code from shmem.c and shmem.h
5 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #702 of 2 reviewers saw the final version

Matches the code relocation in #70, with the shmem_hash.c introductory comment updated here instead of in the following registration patch.

  • Ashutosh Bapatsaw the final versiontrailerReviewed moving ShmemInitHash into a separate file in #29, with later changes extending the same mechanical relocation.
  • Matthias van de Meentsaw the final versiontrailerMarked the preparatory relocation LGTM in #49, before additional header movement and comment cleanup.
Improve test_lwlock_tranches
5 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1Also in: Duplicate RequestNamedLWLocktranche() names and test_lwlock_tranches improvements (landed as posted)
Test pg_stat_statements across crash restart
2 Apr 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #421 of 1 reviewer saw the final version

The 33 added lines match the crash-restart test in #42, enabling pg_stat_statements and checking its allocations and usability after restart.

  • Ashutosh Bapatsaw the final versiontrailerRequested actually querying pg_stat_statements and checking pg_shmem_allocations after restart in #29, which the final test implements.
Refactor PredicateLockShmemInit to not reuse var for different things
27 Mar 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #341 of 1 reviewer saw the final version

The 68 changed lines in src/backend/storage/lmgr/predicate.c match the separate-size-variables patch in #34, also present in #28.

  • Ashutosh Bapatsaw the final versiontrailerReviewed the predicate variable-separation patch as straightforward in #29, and its code remained unchanged.
Refactor ShmemIndex initialization
26 Mar 2026Heikki Linnakangasmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #281 of 1 reviewer saw the final version

Uses the ShmemIndex refactoring from #28, incorporating Ashutosh's clearer initialization ordering and removal of the misleading hash_size temporary from #29; Heikki confirms this in #32.

  • Ashutosh Bapatsaw the final versiontrailerReviewed initialization dependencies and supplied readability adjustments in #29, which Heikki incorporated before committing.

Credits across 19 commits

Author
Heikki LinnakangasLLM17
Reviewer
Ashutosh Bapat16
Matthias van de Meent13
Daniel Gustafsson12
Robert Haas1
Sami Imseih1
Zsolt Parragi1
Reported by
Dagfinn Ilmari Mannsåker1
Co author
Ashutosh Bapat1
Committer
Heikki Linnakangas19

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