pgsql: Improve pg_amcheck's TAP test 003_check.pl.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve pg_amcheck's TAP test 003_check.pl.
Date: 2021-03-23 19:05:45
Message-ID: E1lOmLZ-0007fb-LH@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/87d90ac61fa113ffc886efcdb391c522c1982991

Modified Files
--------------
src/bin/pg_amcheck/t/003_check.pl | 24 ++++++++++++++++++------
1 file changed, 18 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2021-03-23 19:13:07 Re: pgsql: Add a new GUC and a reloption to enable inserts in parallel-mode
Previous Message Andres Freund 2021-03-23 18:44:06 Re: pgsql: Add a new GUC and a reloption to enable inserts in parallel-mode