Fix new TAP test for 2PC transactions and PITRs on Windows

Michael Paquier <michael@paquier.xyz>

Commit: 66bd6fcf82540b714de3a7aded3e940dc17bd1bc
Author: Michael Paquier <michael@paquier.xyz>
Date: 2021-03-22T00:51:22Z
Releases: 11.12
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

Files

PathChange+/−
src/test/recovery/t/023_pitr_prepared_xact.pl modified +1 −3