model-writtenrun 7015 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nathan Bossart's opening commit announcement explained that moving named LWLock tranche requests into shared memory allowed GetNamedLWLockTranche() calls outside postmaster on EXEC_BACKEND builds, choosing that behavior over documentation changes or a postmaster-only restriction and declining backpatching because reports were lacking #1.
- Michael Paquier reported persistent batta buildfarm failures and reproduced a crash during shared-memory reinitialization with pg_stat_statements preloaded, tracing it to an inaccessible tranche request array in NumLWLocksForNamedTranches() #2.
- Nathan supplied a fix retaining the request array in postmaster-local memory #3, then simplified it to save the original pointer in CreateLWLocks() and restore it in LWLockShmemSize() #4.
- Michael reported that three recovery tests passed with and without EXEC_BACKEND, accepted the pointer restoration despite its unusual placement in a sizing routine, and requested explicit NULL initialization and explanatory comments #5; Nathan incorporated those refinements #6.
- Michael approved the final comments while suggesting that other shared-memory areas might deserve inspection #7, and Nathan committed the final patch with light comment and commit-message edits as c3cc2ab87d and announced completion #8.
- Michael confirmed that batta was healthy again, leaving the attached fix fully committed with no further patch revisions pending in this thread #9.