On 9/19/25 06:06, Tom Lane wrote: > Ron Johnson <ronljohnsonjr@gmail.com> writes: >> On Thu, Sep 18, 2025 at 4:47 PM Ron Watkins <rwatki@gmail.com> wrote: >>> How do you install pgping on RHEL 9? >>> It doesn't appear to come with the distribution. >>> Is there some specific repo you need to use? >> What does it do that ncat and psql don't do? > pg_isready might be what the OP wants. > > regards, tom lane my latest experience with pg_isready reminded me that it only works on a general level (cluster ready generally) though. If you include a database to the command it still reports true even if the database you want to address does not exist.
That said I remember that I read this was broken since ... forever, which means nobody cares.
pg_isready is "ncat -zv $host 5432" for systems which don't have ncat installed. No/few Linux systems meet that criterion, but Windows systems might.