Add pg_amcheck, a CLI for contrib/amcheck.
authorRobert Haas <rhaas@postgresql.org>
Fri, 12 Mar 2021 18:00:01 +0000 (13:00 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 12 Mar 2021 18:00:01 +0000 (13:00 -0500)
commit9706092839db2c8c93860674e426a917635438c3
tree63bce8d3bffd728a0fbe06f635837319721e5527
parent48d67fd897918c72e7cdf703d794056b88ed5725
Add pg_amcheck, a CLI for contrib/amcheck.

This makes it a lot easier to run the corruption checks that are
implemented by contrib/amcheck against lots of relations and get
the result in an easily understandable format. It has a wide variety
of options for choosing which relations to check and which checks
to perform, and it can run checks in parallel if you want.

Mark Dilger, reviewed by Peter Geoghegan and by me.

Discussion: http://postgr.es/m/12ED3DA8-25F0-4B68-937D-D907CFBF08E7@enterprisedb.com
Discussion: http://postgr.es/m/BA592F2D-F928-46FF-9516-2B827F067F57@enterprisedb.com
14 files changed:
doc/src/sgml/ref/allfiles.sgml
doc/src/sgml/ref/pg_amcheck.sgml [new file with mode: 0644]
doc/src/sgml/reference.sgml
src/bin/Makefile
src/bin/pg_amcheck/.gitignore [new file with mode: 0644]
src/bin/pg_amcheck/Makefile [new file with mode: 0644]
src/bin/pg_amcheck/pg_amcheck.c [new file with mode: 0644]
src/bin/pg_amcheck/t/001_basic.pl [new file with mode: 0644]
src/bin/pg_amcheck/t/002_nonesuch.pl [new file with mode: 0644]
src/bin/pg_amcheck/t/003_check.pl [new file with mode: 0644]
src/bin/pg_amcheck/t/004_verify_heapam.pl [new file with mode: 0644]
src/bin/pg_amcheck/t/005_opclass_damage.pl [new file with mode: 0644]
src/tools/msvc/Install.pm
src/tools/msvc/Mkvcbuild.pm