Fix new TAP test for 2PC transactions and PITRs on Windows
authorMichael Paquier <michael@paquier.xyz>
Mon, 22 Mar 2021 00:51:14 +0000 (09:51 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 22 Mar 2021 00:51:14 +0000 (09:51 +0900)
commit7bdc717a5438650c13b7dcde427828eb1743fd8c
tree89b2d99c46e69d471e19039f8fcc125b2a68fad9
parent6e5ce888ad1e7b7da5de507d89d03bc83d954923
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
src/test/recovery/t/023_pitr_prepared_xact.pl