aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-03-22 09:51:27 +0900
committerMichael Paquier <michael@paquier.xyz>2021-03-22 09:51:27 +0900
commit6864adc70ed28b097cb1752a6de215b0bc5e03d9 (patch)
tree2a08e46b9864a2733ed2fc12508a1e8d38acf77b
parent1ec7162a8d3494bce97bf52250943143cf6638ad (diff)
downloadpostgresql-6864adc70ed28b097cb1752a6de215b0bc5e03d9.tar.gz
postgresql-6864adc70ed28b097cb1752a6de215b0bc5e03d9.zip
Fix new TAP test for 2PC transactions and PITRs on Windows
The test added by 595b9cb forgot that on Windows it is necessary to set up pg_hba.conf (see PostgresNode::set_replication_conf) with a specific entry or base backups fail. Any node that requires to support replication just needs to pass down allows_streaming at initialization. This updates the test to do so. Simplify things a bit while on it. Per buildfarm member fairywren. Any Windows hosts running this test would have failed, and I have reproduced the problem as well. Backpatch-through: 10
-rw-r--r--src/test/recovery/t/023_pitr_prepared_xact.pl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/recovery/t/023_pitr_prepared_xact.pl b/src/test/recovery/t/023_pitr_prepared_xact.pl
index da000383465..eb6baeb1f6c 100644
--- a/src/test/recovery/t/023_pitr_prepared_xact.pl
+++ b/src/test/recovery/t/023_pitr_prepared_xact.pl
@@ -8,11 +8,9 @@ use File::Compare;
# Initialize and start primary node with WAL archiving
my $node_primary = get_new_node('primary');
-$node_primary->init(has_archiving => 1);
+$node_primary->init(has_archiving => 1, allows_streaming => 1);
$node_primary->append_conf(
'postgresql.conf', qq{
-max_wal_senders = 10
-wal_level = 'replica'
max_prepared_transactions = 10});
$node_primary->start;