Jan 2024

4 commits
Fix possible NULL pointer dereference in GetNamedDSMSegment().
23 Jan 2024Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #482 of 2 reviewers saw the final version

The attachment in #48 and 4372adfa24 have identical stable patch IDs. Both check dsm_attach() for NULL and consolidate the existing-segment branches in src/backend/storage/ipc/dsm_registry.c.

  • Michael Paquiersaw the final versiontrailerConfirmed in #49 that the ERROR handling in #48 looked correct.
  • Bharath Rupireddysaw the final versiontrailerChecked dsm_attach() call-site handling and approved the cleaner code in #50.
Teach autoprewarm to use the dynamic shared memory registry.
19 Jan 2024Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #441 of 1 reviewer saw the final version

The complete autoprewarm attachment in #44 has the same stable patch ID as abb0b4fc03. It replaces startup shared-memory reservation and ShmemInitStruct() with GetNamedDSMSegment() and an initialization callback.

  • Bharath Rupireddysaw the final versiontrailerRequested removal of autoprewarm.c's unnecessary include in #24, reviewed subsequent versions, and declared the final series good in #45.
Introduce the dynamic shared memory registry.
19 Jan 2024Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #441 of 7 reviewers saw the final version

Compared with the registry attachment in #44, 8b2bcf3f28 adds DSMRegistryEntry.size and rejects requests whose size differs from an existing segment. It also expands comments, uses NULL for dshash arguments, and converts input-validation errors to ereport().

  • Michael Paquiersaw an earlier versiontrailerReviewed the original API and proposed lookup support in #4, then supported documentation and retaining startup hooks in #37, before later validation changes.
  • Andrei Lepikhovsaw an earlier versiontrailerReviewed the original code and proposed richer locking tests in #6 and #15, then discussed naming and documentation in #35, before later validation changes.
  • Nikita Malakhovsaw an earlier versiontrailerReported reading and liking the original code and suggested segment detachment in #7, before API and validation revisions.
  • Robert Haassaw an earlier versiontrailerArgued for keeping the registry separate from DSA in #8 and assessed key-size costs in #26, before later API and validation changes.
  • Bharath Rupireddysaw the final versiontrailerReviewed successive versions, demonstrated invalid-input failures in #43, and approved the source patchset in #45, although the additional size-mismatch guard appeared only at commit time.
  • Zhang Minglisaw an earlier versiontrailerQuestioned postmaster-context handling in DSMRegistryShmemInit() and otherwise approved the original patch in #18, before API and validation revisions.
  • Amul Sulsaw an earlier versiontrailerProposed simplifying the public function name in #31, before the GetNamedDSMSegment() rename and subsequent validation changes.
doc: Reorganize section for shared memory and LWLocks.
19 Jan 2024Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1Also in: reorganize "Shared Memory and LWLocks" section of docs (not this thread)
LLM analysis, 100% surelanded as postedfrom patchset #442 of 3 reviewers saw the final version

The doc/src/sgml/xfunc.sgml diff in #44 exactly matches the commit after normalizing blob-hash abbreviation lengths. Although thread #49025 claims the commit from #551217, that submission predates #44 by approximately 15 minutes, so the latest-matching-patchset rule assigns it here.

  • Aleksander Alekseevno review foundtrailerNo review by Aleksander Alekseev appears in this thread; #39 explains that the documentation prerequisite was also tracked separately.
  • Bharath Rupireddysaw the final versiontrailerApproved the final series, including its documentation prerequisite, in #45.
  • Abhijit Menon-Sensaw the final versiontrailerSuggested spelling and wording corrections in #40, which were incorporated with only light documentation changes afterward.

Credits across 4 commits

Author
Nathan BossartLLM4
Reviewer
Bharath Rupireddy4
Michael Paquier2
Abhijit Menon-Sen1
Aleksander Alekseev1
Amul Sul1
Andrei Lepikhov1
Nikita Malakhov1
Robert Haas1
Zhang Mingli1
Reported by
Tom Lane1
Committer
Nathan Bossart4

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