Actually the fact that a pg client finds it needs a password is usually
good enough.
e.g. if the client gets connected and can exit, assume db is up
if the client finds it needs a password to fully connect, assume db is up.
If there is no response, assume db is down.
Link.
At 12:52 PM 4/3/03 -0800, Sean Chittenden wrote:
>I've added the pg_ping util to my todo list, but I'm swamped atm. Are
>there any request bits that could be used for interactivity with the
>server beyond the server being able to accept a connection?
>
>-sc
>
>--
>Sean Chittenden
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)