]> 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:49 +0000 (13:48 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 8 Jul 2025 04:48:49 +0000 (13:48 +0900)
commita27893df45ec5d8c657899202e9cf0b9a816fe2f
tree20d38cf700394c5c7a2c417fd4d35457074fc818
parentf54af9f2679d5987b4680e742ac9bd585260e620
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