model-writtenrun 1812 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier reported an assertion failure found during concurrent injection_points benchmarking and proposed locking fixed-size statistics updates, supplying a reproducer and patch in #1.
- Chao Li asked whether the bgwriter and other statistics writers also needed locks in #2; Michael explained in #3 that each of those statistics kinds has a single reporting process, so their writes cannot overlap.
- Bertrand Drouvot approved the patch in #4, Chao Li approved it after that clarification in #5, and wenhui qiu endorsed the fix and its concurrency rationale in #6.
- Michael committed #1 unchanged as 3cc689f833, adding exclusive locking around the changecount-protected statistics updates.
- Michael confirmed in #8 that the fix had landed and been backpatched through PostgreSQL 18, leaving no outstanding patch revisions.