Re: error codes - Mailing list pgsql-hackers

From Fernando Nasser
Subject Re: error codes
Date
Msg-id 3DE40A62.3000402@redhat.com
Whole thread Raw
In response to Re: error codes  ("Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>)
List pgsql-hackers
Insisting on Andreas suggestion,  why can't we just prefix all error message 
strings with the SQLState code?  So all error messages would have the format

CCSSS - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Where CCSSS is the standard SQLState code and the message text is a more 
specific description.

Note that the standard allows for implementation-defined codes, so we can have 
our own CC classes and all the SSS subclasses that we need.


-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Request from eWeek for 7.3 comments
Next
From: Ian Barwick
Date:
Subject: Boolean casting in 7.3 -> changed?