mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Fix inconsistent quoting for some options in TAP tests
This commit addresses some inconsistencies with how the options of some routines from PostgreSQL/Test/ are written, mainly for init() and init_from_backup() in Cluster.pm. These are written as unquoted, except in the locations updated here. Changes extracted from a larger patch by the same author. Author: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> Discussion: https://postgr.es/m/87jz8rzf3h.fsf@wibble.ilmari.org
This commit is contained in:
@ -28,7 +28,7 @@ sub query_log
|
||||
}
|
||||
|
||||
my $node = PostgreSQL::Test::Cluster->new('main');
|
||||
$node->init('auth_extra' => [ '--create-role' => 'regress_user1' ]);
|
||||
$node->init(auth_extra => [ '--create-role' => 'regress_user1' ]);
|
||||
$node->append_conf('postgresql.conf',
|
||||
"session_preload_libraries = 'auto_explain'");
|
||||
$node->append_conf('postgresql.conf', "auto_explain.log_min_duration = 0");
|
||||
|
@ -24,8 +24,8 @@ my $node = PostgreSQL::Test::Cluster->new('primary');
|
||||
# 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' ]);
|
||||
allows_streaming => 1,
|
||||
auth_extra => [ '--create-role' => 'backupuser' ]);
|
||||
|
||||
$node->append_conf('postgresql.conf',
|
||||
"shared_preload_libraries = 'basebackup_to_shell'");
|
||||
|
Reference in New Issue
Block a user