HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pg_isready — Check the connection status of a PostgreSQL server. More information: <https://www.postgresql.org/do

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandpg_isreadyconnectionstatusclicheckpostgresql

Problem

How to use the pg_isready command: Check the connection status of a PostgreSQL server. More information: <https://www.postgresql.org/docs/current/app-pg-isready.html>.

Solution

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 {{[-h|--host]}} {{hostname}} {{[-p|--port]}} {{port}}


Check connection displaying a message only when the connection fails:
pg_isready {{[-q|--quiet]}}

Code Snippets

Check connection

pg_isready

Check connection with a specific hostname and port

pg_isready {{[-h|--host]}} {{hostname}} {{[-p|--port]}} {{port}}

Check connection displaying a message only when the connection fails

pg_isready {{[-q|--quiet]}}

Context

tldr-pages: common/pg_isready

Revisions (0)

No revisions yet.