model-writtenrun 4607 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Thomas Munro found WAIT_EVENT_SLRU_FLUSH_SYNC unused while checking for orphaned wait events and proposed removing its enum, display-name mapping, and documentation in #1.
- Bharath Rupireddy argued in #2 that SlruSyncFileTag() should report the event around its fsync, matching mdsyncfiletag(), and suggested automating checks for unused events.
- Thomas accepted that the missing reporting was a bug and replaced the removal patch with wait-start/end instrumentation in #3, proposing backpatching to PostgreSQL 14.
- For broader automation, Thomas proposed generating wait-event definitions and documentation from a central file in #3; Bertrand Drouvot offered to pursue that in a separate thread in #4, and Bharath endorsed the idea while approving the fix in #5.
- Bharath reminded the thread that the fix remained unapplied in #6, and Michael Paquier said he would clean it up in #7.
- Michael subsequently committed the exact code from #3 as 84cc142674, completing the reporting fix; the original removal approach was abandoned, and centralized wait-event generation was left for separate work.