Improve pg_amcheck's TAP test 003_check.pl.
authorRobert Haas <rhaas@postgresql.org>
Tue, 23 Mar 2021 18:57:45 +0000 (14:57 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 23 Mar 2021 18:57:45 +0000 (14:57 -0400)
commit87d90ac61fa113ffc886efcdb391c522c1982991
tree2013c9a340b03b0145d3990727502619d4d218c8
parentea80138545043c0cfcff8405b15626796f2695fe
Improve pg_amcheck's TAP test 003_check.pl.

Disable autovacuum, because we don't want it to run against
intentionally corrupted tables. Also, before corrupting the tables,
run pg_amcheck and ensure that it passes. Otherwise, if something
unexpected happens when we check the corrupted tables, it's not so
clear whether it would have also happened before we corrupted
them.

Mark Dilger

Discussion: http://postgr.es/m/AA5506CE-7D2A-42E4-A51D-358635E3722D@enterprisedb.com
src/bin/pg_amcheck/t/003_check.pl