]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Split 002_pg_dump.pl into two test files.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Oct 2025 16:51:55 +0000 (12:51 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Oct 2025 16:51:55 +0000 (12:51 -0400)
commit9dcf7f1172cd464366ad488feae9c94a2c9ca417
tree3cda641cb5cc33a1de2304667e0e5d0cf2f274cf
parent66ec01dc41243d756896777aa66df149ac8fa31d
Split 002_pg_dump.pl into two test files.

Add a new test script 006_pg_dump_compress.pl, containing just
the pg_dump tests specifically concerned with compression, and
remove those tests from 002_pg_dump.pl.  We can also drop some
infrastructure in 002_pg_dump.pl that was used only for these tests.

The point of this is to avoid the cost of running these test
cases over and over in all the scenarios (runs) that 002_pg_dump.pl
exercises.  We don't learn anything more about the behavior of the
compression code that way, and we expend significant amounts of
time, since one of these test cases is quite large and due to get
larger.

The intent of this specific patch is to provide exactly the same
coverage as before, except that I went back to using --no-sync
in all the test runs moved over to 006_pg_dump_compress.pl.
I think that avoiding that had basically been cargo-culted into
these test cases as a result of modeling them on the
defaults_custom_format test case; again, doing that over and over
isn't going to teach us anything new.

Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/3515357.1760128017@sss.pgh.pa.us
src/bin/pg_dump/meson.build
src/bin/pg_dump/t/002_pg_dump.pl
src/bin/pg_dump/t/006_pg_dump_compress.pl [new file with mode: 0644]