Switch pg_basebackup commands in Postgres.pm to use --nosync
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 29 Sep 2016 16:00:00 +0000 (12:00 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 29 Sep 2016 16:00:00 +0000 (12:00 -0400)
On slow machines, this greatly reduces the I/O pressure induced by the
tests.

From: Michael Paquier <michael.paquier@gmail.com>

src/test/perl/PostgresNode.pm

index afbdb6332bd8a1a949f2c906f4efeb6aebb849bc..1611ac9461d6b5c1909fa0e2ad2414628dd78066 100644 (file)
@@ -483,7 +483,7 @@ sub backup
 
    print "# Taking pg_basebackup $backup_name from node \"$name\"\n";
    TestLib::system_or_bail('pg_basebackup', '-D', $backup_path, '-p', $port,
-       '-x');
+       '-x', '--nosync');
    print "# Backup finished\n";
 }