model-writtenrun 2615 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Srinath Reddy Sadipiralla proposed removing local-buffer handling from BufferIsExclusiveLocked and BufferIsDirty because their current core caller only needed shared buffers #1; Andres Freund argued that extensions and future callers justified retaining support #2.
- Srinath then identified that local buffers do not acquire content locks and submitted a replacement patch restricting BufferIsDirty's lock assertion to shared buffers #3; Nazir Bilal Yavuz approved the fix #4 and confirmed that approval #6.
- Tom Lane asked for the pin assertion to precede the content-lock check and for BufferIsExclusiveLocked to treat pinned local buffers as exclusively locked, extending the fix to both functions #10.
- Srinath implemented that behavior while changing BufferIsExclusiveLocked to return a buffer descriptor for reuse by BufferIsDirty #11; Tom questioned the signature change #12, and Srinath explained that it was intended to eliminate repeated checks #13.
- Srinath withdrew the API change and submitted a revision confined to bufmgr.c, preserving the local-buffer fixes and moving the pin assertions earlier #15.
- Tom committed #15 as f6ff75f796 with comment and formatting edits plus removal of an unused descriptor lookup; his closing message confirmed the landing and explained that API compatibility served extensions, while simplifying the XLogRegisterBuffer assertion was left out because its speed did not justify possible confusion #16.