Add more TAP tests for pg_dump with attribute compression
authorMichael Paquier <michael@paquier.xyz>
Mon, 10 May 2021 02:12:07 +0000 (11:12 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 10 May 2021 02:12:07 +0000 (11:12 +0900)
commit63db0ac3f9e6bae313da67f640c95c0045b7f0ee
treeff785c4fb87dca7fafc8d49cffecd24a615a436f
parent02a93e7ef9612788081ef07ea1bbd0a8cc99ae99
Add more TAP tests for pg_dump with attribute compression

Some relations with LZ4 used as the toast compression methods have been
left around in the main regression test suite to stress pg_upgrade, but
pg_dump, that includes tests much more picky in terms of output
generated, had no actual coverage with this feature.

Similarly to collations, tests only working with LZ4 are tracked with an
additional flag, and this uses TestLib::check_pg_config() to check if
the build supports LZ4 or not.  This stresses more scenarios with
tables, materialized views and pg_dump --no-toast-compression.

Author: Dilip Kumar
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/CAFiTN-twgPmohG7qj1HXhySq16h123y5OowsQR+5h1YeZE9fmQ@mail.gmail.com
src/bin/pg_dump/t/002_pg_dump.pl