Patch in created by Sheikh Wasiu Al Hasib and modified by Be Peng.
OLD_PRIMARY_NODE_PORT="${12}"
PGHOME=/usr/pgsql-16
-REPL_SLOT_NAME=${FAILED_NODE_HOST//[-.]/_}
+REPL_SLOT_NAME=$(echo ${FAILED_NODE_HOST,,} | tr -- -. _)
POSTGRESQL_STARTUP_USER=postgres
SSH_KEY_FILE=id_rsa_pgpool
SSH_OPTIONS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i ~/.ssh/${SSH_KEY_FILE}"
PCP_USER=pgpool
PGPOOL_PATH=/usr/bin
PCP_PORT=9898
-REPL_SLOT_NAME=${NODE_HOST//[-.]/_}
+REPL_SLOT_NAME=$(echo ${NODE_HOST,,} | tr -- -. _)
POSTGRESQL_STARTUP_USER=postgres
SSH_KEY_FILE=id_rsa_pgpool
SSH_OPTIONS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i ~/.ssh/${SSH_KEY_FILE}"
PGHOME=/usr/pgsql-16
ARCHIVEDIR=/var/lib/pgsql/archivedir
REPLUSER=repl
-REPL_SLOT_NAME=${DEST_NODE_HOST//[-.]/_}
+REPL_SLOT_NAME=$(echo ${DEST_NODE_HOST,,} | tr -- -. _)
POSTGRESQL_STARTUP_USER=postgres
SSH_KEY_FILE=id_rsa_pgpool
SSH_OPTIONS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i ~/.ssh/${SSH_KEY_FILE}"