mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
In basebackup_to_shell tests, properly set up pg_hba.conf.
Discussion: http://postgr.es/m/485495.1648692468@sss.pgh.pa.us
This commit is contained in:
parent
8910a25fef
commit
fea1cc49e4
@ -17,7 +17,12 @@ if (!defined $gzip || $gzip eq '')
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $node = PostgreSQL::Test::Cluster->new('primary');
|
my $node = PostgreSQL::Test::Cluster->new('primary');
|
||||||
$node->init('allows_streaming' => 1);
|
|
||||||
|
# Make sure pg_hba.conf is set up to allow connections from backupuser.
|
||||||
|
# This is only needed on Windows machines that don't use UNIX sockets.
|
||||||
|
$node->init('allows_streaming' => 1,
|
||||||
|
'auth_extra' => [ '--create-role', 'backupuser' ]);
|
||||||
|
|
||||||
$node->append_conf('postgresql.conf',
|
$node->append_conf('postgresql.conf',
|
||||||
"shared_preload_libraries = 'basebackup_to_shell'");
|
"shared_preload_libraries = 'basebackup_to_shell'");
|
||||||
$node->start;
|
$node->start;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user