Hello Everyone,
Since version 11 replications slots names are not allowed use . dot so default setup use hostnames.
Fix for this
Line 37
DEST_NODE=${DEST_NODE_HOST%%.*}
echo "Set replication Node $DEST_NODE"
${PGHOME}/bin/psql -p ${PRIMARY_NODE_PORT} << EOQ
SELECT pg_create_physical_replication_slot('${DEST_NODE}');
EOQ
volga629