使用连接参数运行连接到处于启动中的PostgreSQL集簇: $pg_isready -h localhost -p 5433localhost:5433 - rejecting connections$echo $?1 使用连接参数运行连接到无响应的PostgreSQL集簇: $pg_isready -h someremotehostsomeremotehost:5432 - no response$echo $?2...
connections (for example during startup), <literal>2</literal> if there was no response to the connection attempt, and <literal>3</literal> if no attempt was made (for example due to invalid parameters). </para> </refsect1> <refsect1> Environment <para> pg_isready, like most other ...
pg_isready returns 0 to the shell if the server is accepting connections normally, 1 if the server is rejecting connections (for example during startup), 2 if there was no response to the connection attempt, and 3 if no attempt was made (for example due to invalid parameters). ...
$ 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 2022...