model-writtenrun 4060 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Karina Litskevich reported unexpected BufferUsage differences between PostgreSQL 15 and 16 in #1, then supplied a patch in #2 correcting temporary-table extension accounting to increment local_blks_written instead of temp_blks_written.
- Nazir Bilal Yavuz endorsed the correction in #3 and traced the remaining differences to changed read paths and newly counted free-space-map extension writes.
- Andres Freund retained Karina's correction and added pg_stat_statements regression tests in #4, explaining that the counters were difficult to test in core; he also suggested clarifying the local-versus-temp naming, but included no such comment change.
- Andres explained in #5 that avoiding an unnecessary read and counting free-space-map writes were legitimate improvements, resolving the remaining counter discrepancies without further code changes.
- Andres committed #4 unchanged as 7369798a83, with a PostgreSQL 16 backport, and announced the push in #6; Karina's thanks in #7 closed the thread with the fix and tests landed.