postgres.git / summary / log / commit / refs

commit    66bd6fcf82540b714de3a7aded3e940dc17bd1bc
Author:   Michael Paquier <michael@paquier.xyz>
Date:     Mon Mar 22 00:51:22 2021 +0000
First released in: 14.0, 10.17, 11.12, 12.7, 13.3

    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 | 4 +--- 1 file changed, 1 insertion(+), 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; [parent: f1d550f188e2]