pg_amcheck: Minor test speedups

Andres Freund <andres@anarazel.de>

Commit: a4f23f9b3cddb86137a3b1683dcbe49d8b41ea7b
Author: Andres Freund <andres@anarazel.de>
Date: 2023-03-11T23:41:47Z
Releases: 16.0
pg_amcheck: Minor test speedups

Freezing the relation N times and fetching the tuples one-by-one isn't that
cheap. On my machine this reduces test times by a bit less than one second, on
windows CI it's a few seconds.

Reviewed-by: Mark Dilger <mark.dilger@enterprisedb.com>
Discussion: https://postgr.es/m/20230309001558.b7shzvio645ebdta@awork3.anarazel.de

Files

PathChange+/−
src/bin/pg_amcheck/t/004_verify_heapam.pl modified +15 −18

Discussion