Skip to content

Commit 992d353

Browse files
committed
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
1 parent 11e1577 commit 992d353

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/test/recovery/t/023_pitr_prepared_xact.pl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88

99
# Initialize and start primary node with WAL archiving
1010
my $node_primary = get_new_node('primary');
11-
$node_primary->init(has_archiving => 1);
11+
$node_primary->init(has_archiving => 1, allows_streaming => 1);
1212
$node_primary->append_conf(
1313
'postgresql.conf', qq{
14-
max_wal_senders = 10
15-
wal_level = 'replica'
1614
max_prepared_transactions = 10});
1715
$node_primary->start;
1816

@@ -30,7 +28,6 @@
3028
has_restoring => 1);
3129
$node_pitr->append_conf(
3230
'postgresql.conf', qq{
33-
max_prepared_transactions = 10
3431
recovery_target_name = 'rp'
3532
recovery_target_action = 'promote'});
3633

0 commit comments

Comments
 (0)