Use fast checkpoint in PostgresNode::backup()
authorAlvaro Herrera
Wed, 21 Oct 2020 17:37:25 +0000 (14:37 -0300)
committerAlvaro Herrera
Wed, 21 Oct 2020 17:37:25 +0000 (14:37 -0300)
Should cause tests to be a bit faster

src/test/perl/PostgresNode.pm

index a72054cc4d10f2b2b0ad94f09d7526dde916aa70..fc0432a967278f56e0820befe32c1e8ff16dc242 100644 (file)
@@ -519,8 +519,10 @@ sub backup
    my $name        = $self->name;
 
    print "# Taking pg_basebackup $backup_name from node \"$name\"\n";
-   TestLib::system_or_bail('pg_basebackup', '-D', $backup_path, '-h',
-       $self->host, '-p', $self->port, '--no-sync');
+   TestLib::system_or_bail(
+       'pg_basebackup', '-D', $backup_path, '-h',
+       $self->host,     '-p', $self->port,  '--checkpoint',
+       'fast',          '--no-sync');
    print "# Backup finished\n";
 }