Fix flakey pg_stat_io test

Wrap test of pg_stat_io's tracking of shared buffer reads in a transaction to
prevent concurrent accesses (e.g. by autovacuum) causing spurious test
failures.

Reported-by: Tom Lane <t...@sss.pgh.pa.us>
Author: Melanie Plageman <melanieplage...@gmail.com>
Discussion: 
https://www.postgresql.org/message-id/20230306190919.ai6mxdq3sygyyths%40awork3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1be0fdb9de559ce8daf6d5603f0329cbd056111a

Modified Files
--------------
src/test/regress/expected/stats.out | 4 ++++
src/test/regress/sql/stats.sql      | 4 ++++
2 files changed, 8 insertions(+)

Reply via email to