pg_isready
Check the connection status of a PostgreSQL server. More information: https://www.postgresql.org/docs/current/app-pg-isready.html.
-
Check connection:
pg_isready
-
Check connection with a specific hostname and port:
pg_isready --host={{hostname}} --port={{port}}
-
Check connection displaying a message only when the connection fails:
pg_isready --quiet
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.