A few tests included File::Path::rmtree without using it, and a comment
related to the segment size for replication slot limits was wrong.
Author: Pavel Borisov, Bharath Rupireddy
Reviewed-by: Maxim Orlov
Discussion: https://postgr.es/m/CALj2ACU4-aNLX=DrUM8F7QDwynJKzYRiqOj_33NhnGbhDs5-kQ@mail.gmail.com
use strict;
use warnings;
-use File::Path qw(rmtree);
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;
# Test for timeline switch
use strict;
use warnings;
-use File::Path qw(rmtree);
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;
use PostgreSQL::Test::Utils;
use PostgreSQL::Test::Cluster;
-
-use File::Path qw(rmtree);
use Test::More;
use Time::HiRes qw(usleep);
{
my ($node, $n) = @_;
- # Advance by $n segments (= (16 * $n) MB) on primary
+ # Advance by $n segments (= (wal_segment_size * $n) bytes) on primary.
for (my $i = 0; $i < $n; $i++)
{
$node->safe_psql('postgres',