Skip to content

Commit fea1cc4

Browse files
committed
In basebackup_to_shell tests, properly set up pg_hba.conf.
Discussion: http://postgr.es/m/485495.1648692468@sss.pgh.pa.us
1 parent 8910a25 commit fea1cc4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

contrib/basebackup_to_shell/t/001_basic.pl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
}
1818

1919
my $node = PostgreSQL::Test::Cluster->new('primary');
20-
$node->init('allows_streaming' => 1);
20+
21+
# Make sure pg_hba.conf is set up to allow connections from backupuser.
22+
# This is only needed on Windows machines that don't use UNIX sockets.
23+
$node->init('allows_streaming' => 1,
24+
'auth_extra' => [ '--create-role', 'backupuser' ]);
25+
2126
$node->append_conf('postgresql.conf',
2227
"shared_preload_libraries = 'basebackup_to_shell'");
2328
$node->start;

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