standby clone: don't error out if unable to determine cluster size

The cluster size check is purely informative, and is not in any way
essential for the standby clone operation. As it's possible the query
may fail if the repmgr user does not have sufficient privileges to
query all databases in the cluster, we can simply ignore any failure.

Note that the code comment indicated the query also served to sanity-
check that queries can actually be executed. While this was the case
historically, the preceding server version check now serves the same
purpose and will not have the same risk of failure due to missing
permissions.
This commit is contained in:
Ian Barwick
2022-05-10 15:02:24 +09:00
parent 90a700c7c0
commit cee3b8446a
4 changed files with 35 additions and 16 deletions

View File

@@ -1,5 +1,6 @@
5.3.1 2022-??-??
repmgrd: fixes for potential connection leaks (hslightdb)
standby clone: don't error out if unable to determine cluster size (Ian)
5.3.0 2021-10-12
standby switchover: improve handling of node rejoin failure (Ian)