summaryrefslogtreecommitdiff
path: root/t/CP_Testing.pm
diff options
context:
space:
mode:
authorglyn2015-12-10 14:02:12 +0000
committerChristoph Berg2016-06-03 14:15:58 +0000
commita3ea5253a6e657e8500d758b95e9cc181509a8fd (patch)
tree9c8f54abaa4476191dec3448731cead9e5bc8738 /t/CP_Testing.pm
parent172c6c539896799ce597ea75250264d7f271b00f (diff)
Add check_replication_slots check to check the delay on any replication slots.
"Delay" is measured as size of transaction logs retained for the slot e.g: check_postgres_replication_slots -db=TEST -H=192.168.0.106 -warning=32M -critical=64M
Diffstat (limited to 't/CP_Testing.pm')
-rw-r--r--t/CP_Testing.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/CP_Testing.pm b/t/CP_Testing.pm
index 95ed1e0fd..7d4b6e9a3 100644
--- a/t/CP_Testing.pm
+++ b/t/CP_Testing.pm
@@ -143,6 +143,13 @@ sub test_database_handle {
print $cfh qq{max_fsm_pages = 99999\n};
}
+ ## >= 9.4
+ if ($imaj > 9 or ($imaj==9 and $imin >= 4)) {
+ print $cfh qq{max_replication_slots = 2\n};
+ print $cfh qq{wal_level = logical\n};
+ print $cfh qq{max_wal_senders = 2\n};
+ }
+
print $cfh "\n";
close $cfh or die qq{Could not close "$cfile": $!\n};