Feb 2024

2 commits
Add assert to WALReadFromBuffers().
16 Feb 2024Jeff Davismaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #832 of 2 reviewers saw the final version

The two-hunk src/backend/access/transam/xlog.c change exactly matches the first patch in #83, including its stable patch ID. The companion end-of-range reading experiment was not included.

  • Andres Freundsaw the final versionLLM analysis, 99% sureProposed making the valid-range requirement an assertion in #75 and #77, then supported the write-position check in #85, as also credited by the commit message.
  • Bharath Rupireddysaw the final versionLLM analysis, 94% sureReviewed the assertion's restriction on extension reads of unflushed WAL and proposed an insertion-position alternative in #86, before Jeff retained the original assertion.
Read WAL directly from WAL buffers.
12 Feb 2024Jeff Davismaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #711 of 8 reviewers saw the final version

Commits the first patch of #71, covering WALReadFromBuffers(), XLogSendPhysical(), its declaration, and removal of the old WALRead() TODO. Jeff additionally bounds reads by LogwrtResult.Write and rewrites local accounting and comments; insertion waits, tests, and other callers remain outside this commit.

  • Andres Freundsaw an earlier versiontrailerChallenged locking and page-header validation in #49, #54, and #63, before the explicit-call-site rewrite and final validity-bound changes.
  • Alvaro Herrerasaw an earlier versiontrailerSuggested the WALReadFromBuffers name and skipping zero-length file reads in #70, which #71 adopted before the committer added the write-position bound.
  • Nathan Bossartsaw an earlier versiontrailerReviewed locking frequency, byte-count returns, copying, and logging in #21, #28, and #30, then relaxed his copying recommendation in #41 before the lock-free rewrite.
  • Dilip Kumarsaw an earlier versiontrailerReviewed status reporting, copying, wait events, and test coverage in #6, #17, and #19, well before the locking and API redesigns.
  • Nitin Jadhavsaw an earlier versiontrailerTested buffer-hit behavior and supplied the retention experiment in #31, before the later lock-free implementation.
  • Melih Mutlusaw an earlier versiontrailerReviewed range limits, redundant checks, copying, and API simplification in #62, before Jeff's explicit-call-site rewrite.
  • Kyotaro Horiguchisaw an earlier versiontrailerRaised whole-page copying, writer contention, and incomplete-insertion concerns in #2, before substantial redesign.
  • Jeff Davissaw the final versioncommittercommitted the patch

Dec 2023

2 commits
Additional write barrier in AdvanceXLInsertBuffer().
20 Dec 2023Jeff Davismaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #562 of 2 reviewers saw the final version

Extracts the AdvanceXLInsertBuffer() invalidation and write-barrier hunk from the first patch of #56. The two executable statements are unchanged, while the explanatory comments are condensed.

  • Andres Freundsaw the final versiontrailerReviewed lock-free validation and valid-WAL requirements in #49 and #54, after which the extracted invalidation/barrier implementation changed only in comments.
  • Jeff Davissaw the final versioncommittercommitted the patch
Use 64-bit atomics for xlblocks array elements.
20 Dec 2023Jeff Davismaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #561 of 2 reviewers saw the final version

Extracts the xlblocks atomic conversion from the first patch of #56, leaving invalidation and its barrier for a separate commit. It also corrects XLOGShmemSize() to use sizeof(pg_atomic_uint64) and simplifies the GetXLogBuffer() comment.

  • Andres Freundsaw an earlier versiontrailerReviewed the lock-free-read design and its validity constraints in #49 and #54, before the committed conversion gained the shared-memory sizing correction.
  • Jeff Davissaw the final versioncommittercommitted the patch

Credits across 4 commits

Author
Bharath Rupireddy3
Jeff DavisLLM1
Reviewer
Andres Freund3
Jeff Daviscommitter3
Alvaro Herrera1
Dilip Kumar1
Kyotaro Horiguchi1
Melih Mutlu1
Nathan Bossart1
Nitin Jadhav1
Committer
Jeff Davis4

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