model-writtenrun 4212 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Melanie Plageman relayed Jeff Davis's reports of intermittent pg_stat_io regression failures and proposed checking the combined increase in reuses and evictions so concurrent buffer activity would not cause false failures #1.
- Alexander Lakhin supplied a separate harness for repeatedly running the concurrent regression group, reproduced the failure without Melanie's fix, and reported ten successful iterations with it; the harness served as testing support and was not included in the committed fix #2.
- Masahiko Sawada explained that a ring buffer being flushed or replaced still permits reuse, whereas another backend pinning it can force an eviction outside the ring, and proposed correcting the patch's comment accordingly #3.
- Andres Freund incorporated and refined that comment while retaining Melanie's test changes from #1, committed the fix as 36ab831f9a, and announced the push #4.
- Tom Lane closed the visible discussion by requesting a backpatch because the failure had also affected PostgreSQL 16; no reply appears in this thread, although the supplied commit metadata records a backport of the fix #5 36ab831f9a.