postgresql/src/bin/pg_amcheck
Peter Eisentraut 6a3631e251 Escape output of pg_amcheck test
The pg_amcheck test reports a skip message if the layout of the index
does not match expectations.  That message includes the bytes that
were expected and the ones that were found.  But the found ones are
arbitrary bytes, which can have funny effects on the terminal when
they are printed.  To avoid that, escape non-word characters before
printing.

Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>
Discussion: https://www.postgresql.org/message-id/flat/3f96f079-64e5-468a-8a19-cb481f0d31e5%40eisentraut.org
2024-01-13 20:32:18 +01:00
..
po Update copyright for 2024 2024-01-03 20:49:05 -05:00
t Escape output of pg_amcheck test 2024-01-13 20:32:18 +01:00
.gitignore
Makefile Update copyright for 2024 2024-01-03 20:49:05 -05:00
README Doc: improve README files associated with TAP tests. 2021-10-31 18:12:44 -04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls.mk Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pg_amcheck.c Update copyright for 2024 2024-01-03 20:49:05 -05:00

README

src/bin/pg_amcheck/README

pg_amcheck is a command-line tool for running the amcheck extension.

Running the regression tests
============================

NOTE: You must have given the --enable-tap-tests argument to configure.
Also, to use "make installcheck", you must have built and installed
contrib/amcheck and contrib/pageinspect in addition to the core code.

Run
    make check
or
    make installcheck
You can use "make installcheck" if you previously did "make install".
In that case, the code in the installation tree is tested.  With
"make check", a temporary installation tree is built from the current
sources and then tested.

See src/test/perl/README for more info about running these tests.