aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_verifybackup/t/002_algorithm.pl
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-01-17 15:40:00 -0800
committerAndres Freund <andres@anarazel.de>2022-01-17 15:43:35 -0800
commit839f9636b374d67952fdb2b048f055393bc5a8f4 (patch)
tree64b64267694d8ed7d22726ef93560acc8ce50a16 /src/bin/pg_verifybackup/t/002_algorithm.pl
parentc702d656a28386cf5f642206b495c66775afc4ea (diff)
downloadpostgresql-839f9636b374d67952fdb2b048f055393bc5a8f4.tar.gz
postgresql-839f9636b374d67952fdb2b048f055393bc5a8f4.zip
tests: Consistently use pg_basebackup -cfast --no-sync to accelerate tests.
Most tests invoking pg_basebackup themselves did not yet use -cfast, which makes pg_basebackup take considerably longer. The only reason this didn't cause the tests to take many minutes is that spread checkpoints only throttle when writing out a buffer and there aren't that many dirty buffers in the tests... Discussion: https://postgr.es/m/20220117195711.xx4qbxutrrlmo2dg@alap3.anarazel.de
Diffstat (limited to 'src/bin/pg_verifybackup/t/002_algorithm.pl')
-rw-r--r--src/bin/pg_verifybackup/t/002_algorithm.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_verifybackup/t/002_algorithm.pl b/src/bin/pg_verifybackup/t/002_algorithm.pl
index 06333c6c0d5..5d9965ba8f4 100644
--- a/src/bin/pg_verifybackup/t/002_algorithm.pl
+++ b/src/bin/pg_verifybackup/t/002_algorithm.pl
@@ -21,7 +21,7 @@ for my $algorithm (qw(bogus none crc32c sha224 sha256 sha384 sha512))
my $backup_path = $primary->backup_dir . '/' . $algorithm;
my @backup = (
'pg_basebackup', '-D', $backup_path,
- '--manifest-checksums', $algorithm, '--no-sync');
+ '--manifest-checksums', $algorithm, '--no-sync', '-cfast');
my @verify = ('pg_verifybackup', '-e', $backup_path);
# A backup with a bogus algorithm should fail.