Re: pg_isready mandatory parameters? - Mailing list pgsql-general

From Jeffrey Walton
Subject Re: pg_isready mandatory parameters?
Date
Msg-id CAH8yC8m0fU8xVtJzwHZg5Ac5j1PN6wKTbhLfi9wm9o1JsD-fww@mail.gmail.com
Whole thread Raw
In response to pg_isready mandatory parameters?  ("Zwettler Markus (OIZ)" <Markus.Zwettler@zuerich.ch>)
List pgsql-general
On Fri, Nov 11, 2022 at 12:09 PM Zwettler Markus (OIZ)
<Markus.Zwettler@zuerich.ch> wrote:
>
> I found this in PG14 è
>
> bash-4.4$ ./pg_isready --version
>
> pg_isready (PostgreSQL) 14.2
>
> bash-4.4$ ./pg_isready
>
> /var/run/postgresql:5432 - no attempt
>
> bash-4.4$ ./pg_isready -h localhost
>
> localhost:5432 - no attempt
>
> bash-4.4$ ./pg_isready -h localhost -p 5432
>
> localhost:5432 - no attempt
>
> bash-4.4$ ./pg_isready -h localhost -p 5432 -d postgres
>
> localhost:5432 - no attempt
>
> bash-4.4$ ./pg_isready -h localhost -p 5432 -d postgres -U postgres
>
> localhost:5432 - accepting connections
>
> I always thought all parameters are optional? No?

Optional or ignored???

This may be more what you are looking for:
https://github.com/noloader/pg_check_conn

Jeff



pgsql-general by date:

Previous
From: Alexis Zapata
Date:
Subject: Table : Bloat grow high
Next
From: Tom Lane
Date:
Subject: Re: pg_isready mandatory parameters?