Use fast checkpoint in PostgresNode::backup()
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 21 Oct 2020 17:37:26 +0000 (14:37 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
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 97e9d932ce70883564c827d08c4b6d7b5de7f358..ebcaeb44fec507fe014726c7d0efb77319bb1b62 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;
 }