Error code for database down

From: dnaren(at)hss(dot)hns(dot)com
To: pgsql-sql(at)postgresql(dot)org
Subject: Error code for database down
Date: 2002-12-18 15:52:00
Message-ID: 65256C93.005728EF.00@sampark.hss.hns.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

HI...

When i executed a query using PQexec..It returned error.
Is there any way to check this error is because of Database is down.

like
PGRES_EMPTY_QUERY -- The string sent to the backend was empty.
PGRES_COMMAND_OK -- Successful completion of a command returning no
data
PGRES_TUPLES_OK -- The query successfully executed
etc......

Like this is there any value which will specify the database
failure?????

Thanks in advance
-Naren.

Browse pgsql-sql by date

  From Date Subject
Next Message Gary Stainburn 2002-12-18 16:25:11 references table(multiple columns go here)
Previous Message Tim Perdue 2002-12-18 14:02:43 Re: pl/pgsql question