1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-22 02:52:08 +03:00

Use fast checkpoint in PostgresNode::backup()

Should cause tests to be a bit faster
This commit is contained in:
Alvaro Herrera
2020-10-21 14:37:25 -03:00
parent a795f6782f
commit c7658a470a

View File

@ -561,8 +561,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;
}