Re: Cleaning up ERRCODE usage in our XML code

From: Chapman Flack <jcflack(at)acm(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Cleaning up ERRCODE usage in our XML code
Date: 2025-04-09 14:43:22
Message-ID: 67F6878A.7020400@acm.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2025-04-09 14:43:24 Re: Consistently use macro HeapTupleIsValid to check the validity of tuples in tablecmds.c
Previous Message Tomas Vondra 2025-04-09 14:33:14 Re: Draft for basic NUMA observability