repmgr
repmgr copied to clipboard
repmgr cluster crosscheck does not work with custom PostgreSQL location
I had to install PostgreSQL and repmgr to a custom location: /path/to/postgresql/.
This works fine:
/path/to/postgresql/repmgr --config-file=/path/to/repmgr.conf cluster matrix --pg_bindir=/path/to/postgresql/
INFO: connecting to database
Name | ID | 1 | 2 | 3
---------------------------+----+---+---+---
XXXXXXXXXXXXX-Node-1 | 1 | * | * | *
XXXXXXXXXXXXX-Node-2 | 2 | * | * | *
XXXXXXXXXXXXX-Witness-Node | 3 | * | * | *
But this one does not work: -> The error is: bash: Zeile 1: repmgr: Kommando nicht gefunden.
/path/to/postgresql/repmgr --config-file=/path/to/repmgr.conf cluster crosscheck --pg_bindir=/path/to/postgresql/
INFO: connecting to database
bash: Zeile 1: repmgr: Kommando nicht gefunden.
Name | ID | 1 | 2 | 3
---------------------------+----+---+---+---
XXXXXXXXXXXXX-Node-1 | 1 | * | * | *
XXXXXXXXXXXXX-Node-2 | 2 | * | * | *
XXXXXXXXXXXXX-Witness-Node | 3 | * | * | *
/path/to/postgresql/repmgr --version
repmgr 5.4.1
/path/to/postgresql/postgres --version
postgres (PostgreSQL) 16.1