pgsql: Fix flakey pg_stat_io test

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix flakey pg_stat_io test
Date: 2023-03-07 18:17:26
Message-ID: E1pZbsM-002NbN-97@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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 <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Author: Melanie Plageman <melanieplageman(at)gmail(dot)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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2023-03-07 19:02:10 pgsql: doc: Update pg_size_pretty documentation about petabytes support
Previous Message Michael Paquier 2023-03-07 05:30:21 pgsql: Make get_extension_schema() available