Skip to content

Commit ad4cf31

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 17fc1c7 commit ad4cf31

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/perl/PostgresNode.pm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,12 +477,15 @@ sub init
477477
{
478478
print $conf "wal_level = replica\n";
479479
}
480-
print $conf "max_wal_size = 128MB\n";
480+
print $conf "max_wal_senders = 10\n";
481+
print $conf "max_replication_slots = 10\n";
481482
print $conf "wal_log_hints = on\n";
482483
print $conf "hot_standby = on\n";
483484
# conservative settings to ensure we can run multiple postmasters:
484485
print $conf "shared_buffers = 1MB\n";
485486
print $conf "max_connections = 20\n";
487+
# limit disk space consumption, too:
488+
print $conf "max_wal_size = 128MB\n";
486489
}
487490
else
488491
{

0 commit comments

Comments
 (0)