model-writtenrun 5355 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Heikki Linnakangas reported that ReadRecentBuffer() used shared-buffer descriptors for local buffers and attached a fix that also aligned usage-count handling and bookkeeping with LocalBufferAlloc(); his temporary assertion-based test exposed the original failure during make check #1.
- Thomas Munro confirmed the fix, endorsed incrementing usage count only when the buffer was previously unpinned, and approved the patch while suggesting a comment referring to LocalBufferAlloc() #2.
- Zhang Mingli approved the patch #3, and Richard Guo explained that existing callers never reached the local-buffer branch and suggested extracting common bookkeeping into an inline function or macro #4.
- The attached fix #1 landed unchanged as 7a08f78aea, crediting all three reviewers and specifying backpatching through PostgreSQL 14; the optional comment and shared-helper suggestions were not incorporated.
- Heikki confirmed the push and thanked the reviewers in the final message, leaving the submitted fix fully committed with no outstanding patchset #5.