Re: Postgres Database Error Codes and Error Messages - Mailing list pgsql-general

From Richard Huxton
Subject Re: Postgres Database Error Codes and Error Messages
Date
Msg-id 200307220935.24340.dev@archonet.com
Whole thread Raw
In response to Postgres Database Error Codes and Error Messages  ("Abhishek Goyal" <abhishek.goyal@tatainfotech.com>)
Responses Re: Postgres Database Error Codes and Error Messages
List pgsql-general
On Tuesday 22 July 2003 06:01, Abhishek Goyal wrote:
> Hi,
>
> I am new to working on Postgres database and want to explore it fully.
> Right now, I am interested in knowing all the predefined database error
> codes with error messages for situations like "No Data Found" and "Too many
> rows" during a query operation, "Duplicate key found" during an insert
> operation, "Data Type Mismatch" during a conversion operation and many more
> situations as identified and defined in an Oracle database.
>
> I could not find a similar list of predefined error codes anywhere in
> Postgres documentation.

I don't believe there is one at present, but grep the source for elog() calls
to see all of them. Be aware that the error reporting is being overhauled for
7.4 so you might want to start your study with the CVS version - see the
archives of the hackers list for discussion.


--
  Richard Huxton
  Archonet Ltd

pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Need help to take PGSql Dump
Next
From: Tom Lane
Date:
Subject: Re: can anybody help me please