pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve pg_amcheck's TAP test 003_check.pl.
Date: Tue, 23 Mar 2021 19:05:45 +0000
Message-ID: <E1lOmLZ-0007fb-LH@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1lOmLZ-0007fb-LH@gemulon.postgresql.org>
Permalink:  ../E1lOmLZ-0007fb-LH@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lOmLZ-0007fb-LH@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Improve pg_amcheck's TAP test 003_check.pl.
  In-Reply-To: <E1lOmLZ-0007fb-LH@gemulon.postgresql.org>
  References: <E1lOmLZ-0007fb-LH@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox