aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-08-26 17:02:52 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2019-08-26 17:02:52 -0400
commitfb57f40eec503d637bf01c298f5cb2472f0d4fdb (patch)
tree420aaeb0acddb43910a6d79081d2222e6ca98b01 /src
parentee3278239550ff0ec9df72dd798a480c82c2b723 (diff)
downloadpostgresql-fb57f40eec503d637bf01c298f5cb2472f0d4fdb.tar.gz
postgresql-fb57f40eec503d637bf01c298f5cb2472f0d4fdb.zip
Fix 007_sync_rep.pl to notice failures in ALTER SYSTEM SET.
If a test case tried to set an invalid value of synchronous_standby_names, the test script didn't detect that, which seems like a bad idea. Noticed while testing a proposed patch that broke some of these test cases.
Diffstat (limited to 'src')
-rw-r--r--src/test/recovery/t/007_sync_rep.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/recovery/t/007_sync_rep.pl b/src/test/recovery/t/007_sync_rep.pl
index eccde8f551f..05803bed4e3 100644
--- a/src/test/recovery/t/007_sync_rep.pl
+++ b/src/test/recovery/t/007_sync_rep.pl
@@ -18,7 +18,7 @@ sub test_sync_state
if (defined($setting))
{
- $self->psql('postgres',
+ $self->safe_psql('postgres',
"ALTER SYSTEM SET synchronous_standby_names = '$setting';");
$self->reload;
}