Re: pgping?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gunnar <tongji(at)netcologne(dot)de>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: pgping?
Date: 2025-12-13 15:59:35
Message-ID: 1179785.1765641575@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Gunnar <tongji(at)netcologne(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ron Johnson 2025-12-13 17:12:04 Re: pgping?
Previous Message David G. Johnston 2025-12-13 14:54:35 Re: pgping?