mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
Previously, the check was attempting to make replication connections to the source node, and if these were failing, inferring that insufficient walsenders were available. However it's quite likely that the connections are refused due to insufficient user connection permissions. So before performing the connection check, query the number of potentially available walsenders on the source node and compare it with the number required (either 1 or 2) - if insufficient, exit with error and hint about increasing "max_wal_senders". Once we've established sufficient walsenders are available, inability to connect is most likely related to permissions issues on the source node.
211 KiB
211 KiB