From 513d8857925b787cdf5ecec0e37f46b030e0e2e8 Mon Sep 17 00:00:00 2001 From: maniac Date: Mon, 8 Jun 2026 14:44:42 +0200 Subject: [PATCH] Increase replication threshold to 5 for 9 subscriptions --- push-loop.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/push-loop.ps1 b/push-loop.ps1 index 4a6d6dc..520d613 100644 --- a/push-loop.ps1 +++ b/push-loop.ps1 @@ -23,7 +23,7 @@ while ($true) { $sshKey = "C:\lexware-db-connect\ssh\id_rsa" $result = & ssh -i $sshKey -o StrictHostKeyChecking=no -o ConnectTimeout=5 root@192.168.115.113 ` "sudo -u postgres psql -d f1 -tAc 'SELECT COUNT(*) FROM pg_stat_subscription WHERE received_lsn IS NOT NULL;' 2>/dev/null" - $replOk = ([int]($result.Trim()) -ge 4) + $replOk = ([int]($result.Trim()) -ge 5) } catch {} if ($replOk) {