Why don't you just check to see if you can connect to the database through
normal means? If you can't connect, it isn't accessible. (As long as your
connection routine is correct, of course.)
Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Sandeep Joshi" <sjoshi@Zambeel.com>
To: <pgsql-general@postgresql.org>
Sent: Friday, December 22, 2000 7:24 PM
Subject: [GENERAL] postmasteralive()
>
> In my application I need to know whether the postmaster is alive or not
> and
> also whether a particular database is accessible or not.
>
> I need api's to do this. Are there any?
>
>
> thanks,
> Sandeep