pgsql: pg_amcheck: Minor test speedups - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: pg_amcheck: Minor test speedups
Date
Msg-id E1pb8tD-0035NA-7b@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a4f23f9b3cddb86137a3b1683dcbe49d8b41ea7b

Modified Files
--------------
src/bin/pg_amcheck/t/004_verify_heapam.pl | 33 ++++++++++++++-----------------
1 file changed, 15 insertions(+), 18 deletions(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: amcheck: Fix ordering bug in update_cached_xid_range()
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Mark unsafe_tests module as not runnable with installcheck