Error code for database down - Mailing list pgsql-sql

From dnaren@hss.hns.com
Subject Error code for database down
Date
Msg-id 65256C93.005728EF.00@sampark.hss.hns.com
Whole thread Raw
List pgsql-sql

HI...
    When i executed a query using PQexec..It returned error.    Is there any way to check this error is because of
Databaseis down.
 
    like    PGRES_EMPTY_QUERY -- The string sent to the backend was empty.    PGRES_COMMAND_OK -- Successful completion
ofa 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.




pgsql-sql by date:

Previous
From: Tim Perdue
Date:
Subject: Re: pl/pgsql question
Next
From: "Josh Berkus"
Date:
Subject: Re: pl/pgsql question