Skip to content

Commit def0ce3

Browse files
author
Amit Kapila
committed
Fix BF failure introduced by commit b3f6b14.
The test added by commit b3f6b14 uses a non-superuser and forgot to set up pg_hba.conf to allow connections from it. The special setup is only needed on Windows machines that don't use UNIX sockets. As per buildfarm Discussion: https://postgr.es/m/CAJpy0uCfrSspV1x3VWkgamqyhYaUWQZpP0nqjJx4YPvKqN6P_A@mail.gmail.com
1 parent 963d307 commit def0ce3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/recovery/t/040_standby_failover_slots_sync.pl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414

1515
# Create publisher
1616
my $publisher = PostgreSQL::Test::Cluster->new('publisher');
17-
$publisher->init(allows_streaming => 'logical');
17+
# Make sure pg_hba.conf is set up to allow connections from repl_role.
18+
# This is only needed on Windows machines that don't use UNIX sockets.
19+
$publisher->init(
20+
allows_streaming => 'logical',
21+
auth_extra => [ '--create-role', 'repl_role' ]);
1822
# Disable autovacuum to avoid generating xid during stats update as otherwise
1923
# the new XID could then be replicated to standby at some random point making
2024
# slots at primary lag behind standby during slot sync.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy