postgres operational

Steve Clark <steve.clark@netwolves.com>

From: Steve Clark <steve.clark@netwolves.com>
To: pgsql <pgsql-general@postgresql.org>
Date: 2019-01-09T17:58:44Z
Lists: pgsql-general
Hi List,

Is there a sure fire way to tell if postgres server is up an operational. I was testing to see if the
socket at /tmp/.s.PGSQL.5432 existed - but I ran into a recent problem on CentOS 7.5, postgresql 9.2.24, where the
socket was there but my script couldn't read from my database yet.

Thanks,
Steve
--