Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8440C47698B for ; Wed, 18 Dec 2002 10:56:25 -0500 (EST) Received: from hss.hns.com (unknown [164.164.94.118]) by postgresql.org (Postfix) with ESMTP id 6018D476A82 for ; Wed, 18 Dec 2002 10:56:00 -0500 (EST) Received: from sampark.hss.hns.com (sampark [139.85.229.22]) by hss.hns.com (8.11.6/8.11.2) with SMTP id gBIFWgi09307 for ; Wed, 18 Dec 2002 21:02:42 +0530 Received: by sampark.hss.hns.com(Lotus SMTP MTA Internal build v4.6.2 (651.2 6-10-1998)) id 65256C93.00572A2D ; Wed, 18 Dec 2002 21:22:04 +0530 X-Lotus-FromDomain: HSSBLR From: dnaren@hss.hns.com To: pgsql-sql@postgresql.org Message-ID: <65256C93.005728EF.00@sampark.hss.hns.com> Date: Wed, 18 Dec 2002 21:22:00 +0530 Subject: Error code for database down Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/221 X-Sequence-Number: 10809 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.