]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_walsummary: Improve stability of test checking statistics
authorMichael Paquier <michael@paquier.xyz>
Tue, 8 Jul 2025 04:48:52 +0000 (13:48 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 8 Jul 2025 04:48:52 +0000 (13:48 +0900)
commit330db576f8c37479d472c3e9b0eb6d47ba1d97f4
tree88ef43c423dacc8dd1fde5e84d5402954ab7b8bd
parent9a5334c0b4e9d7269ee9b5e9d08925c8a1e1e01e
pg_walsummary: Improve stability of test checking statistics

Per buildfarm member culicidae, the query checking for stats reported by
the WAL summarizer related to WAL reads is proving to be unstable.

Instead of a one-time query, this commit replaces the logic with a
polling query checking for the WAL read stats, making the test more
reliable on machines that could be slow with the stats reports.

This test has been introduced in f4694e0f35b2, so backpatch down to v18.

Reported-by: Alexander Lakhin <exclusion@gmail.com>
Reviewed-by: Alexander Lakhin <exclusion@gmail.com>
Discussion: https://postgr.es/m/f35ba3db-fca7-4693-bc35-6db64488e4b1@gmail.com
Backpatch-through: 18
src/bin/pg_walsummary/t/002_blocks.pl