010_keep_recycled_wals.pl.patch

text/x-patch

Filename: 010_keep_recycled_wals.pl.patch
Type: text/x-patch
Part: 0
Message: Re: pg_rewind WAL segments deletion pitfall

Patch

Format: unified
File+
src/bin/pg_rewind/t/010_keep_recycled_wals.pl 1 1
diff --git a/src/bin/pg_rewind/t/010_keep_recycled_wals.pl b/src/bin/pg_rewind/t/010_keep_recycled_wals.pl
index e6dfce2a54..c0765b699f 100644
--- a/src/bin/pg_rewind/t/010_keep_recycled_wals.pl
+++ b/src/bin/pg_rewind/t/010_keep_recycled_wals.pl
@@ -25,7 +25,7 @@ RewindTest::primary_psql("CHECKPOINT");    # last common checkpoint
 
 # We use "perl -e 'exit(1)'" as an alternative to "false", because the latter
 # might not be available on Windows.
-my $false = "$^X -e 'exit(1)'";
+my $false = "$^X -e \"exit(1)\"";
 $node_primary->append_conf(
 	'postgresql.conf', qq(
 archive_command = '$false'