Skip to content

Commit 831611b

Browse files
committed
Use fast checkpoint in PostgresNode::backup()
Should cause tests to be a bit faster
1 parent 8a21211 commit 831611b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/perl/PostgresNode.pm

+4-2
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,10 @@ sub backup
553553
my $name = $self->name;
554554

555555
print "# Taking pg_basebackup $backup_name from node \"$name\"\n";
556-
TestLib::system_or_bail('pg_basebackup', '-D', $backup_path, '-h',
557-
$self->host, '-p', $self->port, '--no-sync');
556+
TestLib::system_or_bail(
557+
'pg_basebackup', '-D', $backup_path, '-h',
558+
$self->host, '-p', $self->port, '--checkpoint',
559+
'fast', '--no-sync');
558560
print "# Backup finished\n";
559561
return;
560562
}

0 commit comments

Comments
 (0)