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(at)Zambeel(dot)com>
To: <pgsql-general(at)postgresql(dot)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