model-writtenrun 2500 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier proposed instrumenting XLogWalRcvWrite() to report WAL receiver write counts and timings in pg_stat_io and reuse the WAL_WRITE wait event around pg_pwrite(), while inviting opinions on backpatching #1.
- Bertrand Drouvot approved the instrumentation and wait-event reuse, questioned whether sync monitoring was also missing, and advocated backpatching the monitoring improvements #2.
- Michael clarified that the development branch already aggregated sync statistics for the WAL receiver, whereas stable branches did not #3.
- The patch landed unchanged as 7f7f324eb5; Michael subsequently explained that WAL receiver statistics had originally been excluded for performance reasons under file-based statistics, and chose not to backpatch now that shared-memory statistics made the implementation more practical #4.
- Bertrand agreed that the historical performance rationale justified avoiding a backpatch, leaving the change committed for the development branch only #5.