Обсуждение: pgping?
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?
Ron Watkins, K7DOG
602.743.5272
602.743.5272
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?
Is it in the RHEL 8 repo?
What does it do that ncat and psql don't do?
Test_PG1() { nc -zw5 $1 5432 &> /dev/null ; }
Test_PG2() { psql -h $1 -XAtqc "select version()" &> /dev/null ; }
Test_PG1 example.com || { echo "Server inaccessible."; do_something; }
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!
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
On Fri, Sep 19, 2025 at 12:06 AM Tom Lane <tgl@sss.pgh.pa.us> 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.
Is that a wrapper around
PQping?
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!
On Thursday, September 18, 2025, Ron Johnson <ronljohnsonjr@gmail.com> wrote:
Is that a wrapper aroundPQping?
Yes.
David J.