mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Initial pgperltidy run for v12.
Make all the perl code look nice, too (for some value of "nice").
This commit is contained in:
@ -133,8 +133,10 @@ sub setup_cluster
|
||||
# Set up pg_hba.conf and pg_ident.conf for the role running
|
||||
# pg_rewind. This role is used for all the tests, and has
|
||||
# minimal permissions enough to rewind from an online source.
|
||||
$node_master->init(allows_streaming => 1, extra => $extra,
|
||||
auth_extra => ['--create-role', 'rewind_user']);
|
||||
$node_master->init(
|
||||
allows_streaming => 1,
|
||||
extra => $extra,
|
||||
auth_extra => [ '--create-role', 'rewind_user' ]);
|
||||
|
||||
# Set wal_keep_segments to prevent WAL segment recycling after enforced
|
||||
# checkpoints in the tests.
|
||||
@ -151,7 +153,8 @@ sub start_master
|
||||
|
||||
# Create custom role which is used to run pg_rewind, and adjust its
|
||||
# permissions to the minimum necessary.
|
||||
$node_master->psql('postgres', "
|
||||
$node_master->psql(
|
||||
'postgres', "
|
||||
CREATE ROLE rewind_user LOGIN;
|
||||
GRANT EXECUTE ON function pg_catalog.pg_ls_dir(text, boolean, boolean)
|
||||
TO rewind_user;
|
||||
@ -265,10 +268,9 @@ sub run_pg_rewind
|
||||
# Do rewind using a remote connection as source
|
||||
command_ok(
|
||||
[
|
||||
'pg_rewind', "--debug",
|
||||
"--source-server", $standby_connstr,
|
||||
"--target-pgdata=$master_pgdata",
|
||||
"--no-sync"
|
||||
'pg_rewind', "--debug",
|
||||
"--source-server", $standby_connstr,
|
||||
"--target-pgdata=$master_pgdata", "--no-sync"
|
||||
],
|
||||
'pg_rewind remote');
|
||||
}
|
||||
|
Reference in New Issue
Block a user