Re: pgping?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgping?
Дата
Msg-id 1179785.1765641575@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgping?  (Gunnar <tongji@netcologne.de>)
Список 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 по дате отправления: