Stabilize pg_stat_io writes test
Andres Freund <andres@anarazel.de>
Stabilize pg_stat_io writes test Counting writes only for io_context = 'normal' is unreliable, as backends using a buffer access strategy could flush all of the dirty buffers out from under the other backends and checkpointer. Change the test to count writes in any context. This achieves roughly the same coverage anyway. Reported-by: Justin Pryzby <pryzby@telsasoft.com> Author: Melanie Plageman <melanieplageman@gmail.com> Discussion: https://www.postgresql.org/message-id/ZAnWU8WbXEDjrfUE%40telsasoft.com
Files
| Path | Change | +/− |
|---|---|---|
| src/test/regress/expected/stats.out | modified | +4 −4 |
| src/test/regress/sql/stats.sql | modified | +4 −5 |
Discussion
- pg_stat_bgwriter.buffers_backend is pretty meaningless (and more?) 173 messages · 2020-01-24 → 2023-04-25