Add diagnostic option "repmgr node check --has-passfile"

This checks if the active libpq version (9.6 and later) has the
"passfile" option, and returns 0 if present, 1 if not.
`
This commit is contained in:
Ian Barwick
2017-12-05 12:53:04 +09:00
parent 6e9e4543e8
commit 8c121da8a1
5 changed files with 27 additions and 5 deletions

View File

@@ -700,7 +700,7 @@ has_passfile(void)
PQconninfoFree(defs);
return has_passfile;
return has_passfile;
}