pg_isready

Check the connection status of a PostgreSQL server. More information: https://www.postgresql.org/docs/current/app-pg-isready.html.

pg_isready

pg_isready --host=hostname --port=port

pg_isready --quiet