Skip to content

Commit c7658a4

Browse files
committed
Use fast checkpoint in PostgresNode::backup()
Should cause tests to be a bit faster
1 parent a795f67 commit c7658a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/perl/PostgresNode.pm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,10 @@ sub backup
561561
my $name = $self->name;
562562

563563
print "# Taking pg_basebackup $backup_name from node \"$name\"\n";
564-
TestLib::system_or_bail('pg_basebackup', '-D', $backup_path, '-h',
565-
$self->host, '-p', $self->port, '--no-sync');
564+
TestLib::system_or_bail(
565+
'pg_basebackup', '-D', $backup_path, '-h',
566+
$self->host, '-p', $self->port, '--checkpoint',
567+
'fast', '--no-sync');
566568
print "# Backup finished\n";
567569
return;
568570
}

0 commit comments

Comments
 (0)