Re: pgping? - Mailing list pgsql-admin

From Tom Lane
Subject Re: pgping?
Date
Msg-id 1179785.1765641575@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgping?  (Gunnar <tongji@netcologne.de>)
List pgsql-admin
Gunnar <tongji@netcologne.de> writes:
> On 9/19/25 06:06, Tom Lane wrote:
>> pg_isready might be what the OP wants.

> 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.

If you want to see whether you can log in, then try to log in, using
psql or pretty much any other client.  That is not the problem that
pg_isready seeks to solve.

            regards, tom lane



pgsql-admin by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: pgping?
Next
From: Ron Johnson
Date:
Subject: Re: pgping?