Hi everyone,
I run into problem where pg_pconnect (in php script) failed to get
connection to the postgres server even when the server is actually
running because the server is too busy (serving too many requests).
So I want to check from php script if postgres server is running. The
only way I could think of to is telnet the server on port 5432 (where
postgres is listening).
Does someone know a better way to check if postgres server is running?
thanks
- reynard