From 35b4b7d0851444904f450805880f30b6cc49c514 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Wed, 21 Oct 2020 14:37:25 -0300 Subject: [PATCH] Use fast checkpoint in PostgresNode::backup() Should cause tests to be a bit faster --- src/test/perl/PostgresNode.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm index a72054cc4d1..fc0432a9672 100644 --- a/src/test/perl/PostgresNode.pm +++ b/src/test/perl/PostgresNode.pm @@ -519,8 +519,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"; }