Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4964253

Browse files
committed
Put back explicit setting of replication values within TAP tests.
Commit 151c0c5 neglected the possibility that a TEMP_CONFIG file would explicitly set max_wal_senders=0; as indeed buildfarm member thorntail does, so that it can test wal_level=minimal in other test suites. Hence, rather than assuming that max_wal_senders=10 will prevail if we say nothing, set it explicitly. Set max_replication_slots=10 explicitly too, just to be safe. Back-patch to v10, like the previous patch. Discussion: https://postgr.es/m/723911.1601417626@sss.pgh.pa.us
1 parent e176187 commit 4964253

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/perl/PostgresNode.pm

+4-1
Original file line numberDiff line numberDiff line change
@@ -469,12 +469,15 @@ sub init
469469
{
470470
print $conf "wal_level = replica\n";
471471
}
472-
print $conf "max_wal_size = 128MB\n";
472+
print $conf "max_wal_senders = 10\n";
473+
print $conf "max_replication_slots = 10\n";
473474
print $conf "wal_log_hints = on\n";
474475
print $conf "hot_standby = on\n";
475476
# conservative settings to ensure we can run multiple postmasters:
476477
print $conf "shared_buffers = 1MB\n";
477478
print $conf "max_connections = 10\n";
479+
# limit disk space consumption, too:
480+
print $conf "max_wal_size = 128MB\n";
478481
}
479482
else
480483
{

0 commit comments

Comments
 (0)