mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Pre-beta mechanical code beautification.
Run pgindent, pgperltidy, and reformat-dat-files. I manually fixed a couple of comments that pgindent uglified.
This commit is contained in:
@ -101,8 +101,8 @@ sub check_query
|
||||
],
|
||||
'>', \$stdout, '2>', \$stderr;
|
||||
|
||||
is($result, 1, "$test_name: psql exit code");
|
||||
is($stderr, '', "$test_name: psql no stderr");
|
||||
is($result, 1, "$test_name: psql exit code");
|
||||
is($stderr, '', "$test_name: psql no stderr");
|
||||
is($stdout, $expected_stdout, "$test_name: query result matches");
|
||||
|
||||
return;
|
||||
@ -115,7 +115,8 @@ sub setup_cluster
|
||||
|
||||
# Initialize primary, data checksums are mandatory
|
||||
$node_primary =
|
||||
PostgreSQL::Test::Cluster->new('primary' . ($extra_name ? "_${extra_name}" : ''));
|
||||
PostgreSQL::Test::Cluster->new(
|
||||
'primary' . ($extra_name ? "_${extra_name}" : ''));
|
||||
|
||||
# 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
|
||||
@ -163,7 +164,8 @@ sub create_standby
|
||||
my $extra_name = shift;
|
||||
|
||||
$node_standby =
|
||||
PostgreSQL::Test::Cluster->new('standby' . ($extra_name ? "_${extra_name}" : ''));
|
||||
PostgreSQL::Test::Cluster->new(
|
||||
'standby' . ($extra_name ? "_${extra_name}" : ''));
|
||||
$node_primary->backup('my_backup');
|
||||
$node_standby->init_from_backup($node_primary, 'my_backup');
|
||||
my $connstr_primary = $node_primary->connstr();
|
||||
@ -305,7 +307,8 @@ sub run_pg_rewind
|
||||
# segments from the old primary to the archives. These
|
||||
# will be used by pg_rewind.
|
||||
rmtree($node_primary->archive_dir);
|
||||
PostgreSQL::Test::RecursiveCopy::copypath($node_primary->data_dir . "/pg_wal",
|
||||
PostgreSQL::Test::RecursiveCopy::copypath(
|
||||
$node_primary->data_dir . "/pg_wal",
|
||||
$node_primary->archive_dir);
|
||||
|
||||
# Fast way to remove entire directory content
|
||||
|
Reference in New Issue
Block a user