https://www.postgresql.org/docs/current /static/app-pg-isready.html
-bash-4.2$ if pg_isready93 -d postgres://localhost:5432/template; then echo "200 OK"; else echo "500 NOT OK"; fi
200 OK
-bash-4.2$ if pg_isready93 -d postgres://localhost:5430/template; then echo "200 OK"; else echo "500 NOT OK"; fi
500 NOT OK
кредити за Abelisto - не бих се сетил за pg_isready
в този контекст