Re: Cleaning up ERRCODE usage in our XML code - Mailing list pgsql-hackers

From Chapman Flack
Subject Re: Cleaning up ERRCODE usage in our XML code
Date
Msg-id 67F6878A.7020400@acm.org
Whole thread Raw
In response to Re: Cleaning up ERRCODE usage in our XML code  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 04/09/25 10:03, Tom Lane wrote:
> I think I stole it from DB2:
> 
> 10608    An error was encountered in the argument of an XQuery function or operator.

Interesting. ISO does seem to reserve a class 10 for XQuery errors, but
not to define any subclass codes within it.

Every other SQL/XML error you can get is in class 22, except for
"unmappable XML name" and "invalid XML character" in class 0N.

Regards,
-Chap



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Draft for basic NUMA observability
Next
From: Heikki Linnakangas
Date:
Subject: Re: Consistently use macro HeapTupleIsValid to check the validity of tuples in tablecmds.c