aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_rewind/t/RewindTest.pm
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/pg_rewind/t/RewindTest.pm')
-rw-r--r--src/bin/pg_rewind/t/RewindTest.pm38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/bin/pg_rewind/t/RewindTest.pm b/src/bin/pg_rewind/t/RewindTest.pm
index 45e0d8d390a..6115ec21eb9 100644
--- a/src/bin/pg_rewind/t/RewindTest.pm
+++ b/src/bin/pg_rewind/t/RewindTest.pm
@@ -255,12 +255,11 @@ sub run_pg_rewind
command_ok(
[
'pg_rewind',
- "--debug",
- "--source-pgdata=$standby_pgdata",
- "--target-pgdata=$primary_pgdata",
- "--no-sync",
- "--config-file",
- "$tmp_folder/primary-postgresql.conf.tmp"
+ '--debug',
+ '--source-pgdata' => $standby_pgdata,
+ '--target-pgdata' => $primary_pgdata,
+ '--no-sync',
+ '--config-file' => "$tmp_folder/primary-postgresql.conf.tmp",
],
'pg_rewind local');
}
@@ -270,11 +269,13 @@ sub run_pg_rewind
# recovery configuration automatically.
command_ok(
[
- 'pg_rewind', "--debug",
- "--source-server", $standby_connstr,
- "--target-pgdata=$primary_pgdata", "--no-sync",
- "--write-recovery-conf", "--config-file",
- "$tmp_folder/primary-postgresql.conf.tmp"
+ 'pg_rewind',
+ '--debug',
+ '--source-server' => $standby_connstr,
+ '--target-pgdata' => $primary_pgdata,
+ '--no-sync',
+ '--write-recovery-conf',
+ '--config-file' => "$tmp_folder/primary-postgresql.conf.tmp",
],
'pg_rewind remote');
@@ -327,14 +328,13 @@ sub run_pg_rewind
command_ok(
[
'pg_rewind',
- "--debug",
- "--source-pgdata=$standby_pgdata",
- "--target-pgdata=$primary_pgdata",
- "--no-sync",
- "--no-ensure-shutdown",
- "--restore-target-wal",
- "--config-file",
- "$primary_pgdata/postgresql.conf"
+ '--debug',
+ '--source-pgdata' => $standby_pgdata,
+ '--target-pgdata' => $primary_pgdata,
+ '--no-sync',
+ '--no-ensure-shutdown',
+ '--restore-target-wal',
+ '--config-file' => "$primary_pgdata/postgresql.conf",
],
'pg_rewind archive');
}