model-writtenrun 4263 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nazir Bilal Yavuz discovered missing bgwriter WAL statistics while experimenting with WAL reporting in pg_stat_io and proposed calling pgstat_report_wal(true) in the bgwriter loop in #1.
- Matthias van de Meent endorsed the fix but clarified that bgwriter writes existing WAL rather than generating it and requested the missing instrumentation needed to understand the reported comparison in #2; Nazir corrected the explanation and supplied the WIP instrumentation alongside the unchanged fix in #3.
- Kyotaro Horiguchi confirmed the missing statistics using an assertion and approved the fix, while questioning whether WAL belonged in pg_stat_io's existing design in #4; Melanie Plageman supported representing WAL as an IOObject with contexts for initialization and normal writes in #5, explicitly saying she had not reviewed the patch.
- Heikki Linnakangas committed the unchanged bgwriter fix from #3 as e64c733bb1, backpatched it through PostgreSQL 14, and announced in #7 that he had not examined the separate WAL instrumentation patch.
- Nazir clarified in #8 that the WIP instrumentation was supplied only to explain how he found the bug and had its own CommitFest entry, leaving this thread's bug fix complete and its CommitFest entry ready to close as committed.