Re: Postgres Database Error Codes and Error Messages

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Abhishek Goyal" <abhishek(dot)goyal(at)tatainfotech(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgres Database Error Codes and Error Messages
Date: 2003-07-22 08:35:23
Message-ID: 200307220935.24340.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2003-07-22 09:56:06 Re: Need help to take PGSql Dump
Previous Message ramachandranv 2003-07-22 06:54:27 Double byte