Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+6-1
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)