postgresql_16:7.2.13.6 Examples
PostgreSQL 16 > Reference > PostgreSQL Client Applications > pg_isready > Examples
Standard Usage: $ pg_isready /tmp:5432 - accepting connections $ echo $? 0
Running with connection parameters to a PostgreSQL cluster in startup: $ pg_isready -h localhost -p 5433 localhost:5433 - rejecting connections $ echo $? 1
Running with connection parameters to a non-responsive PostgreSQL cluster: $ pg_isready -h someremotehost someremotehost:5432 - no response $ echo $? 2