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

src/test/perl/PostgresNode.pm

index 4e3e23f013a9eb2029ce7883acb3f30ec8bb5793..980f1f15335eae7613759160aa6936b88c859fa6 100644 (file)
@@ -553,8 +553,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";
    return;
 }