Re: Cleaning up ERRCODE usage in our XML code

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers@lists.postgresql.org
Date: 2025-04-09T11:29:32Z
Lists: pgsql-hackers
On 14.09.24 21:14, Tom Lane wrote:
> +Section: Class 10 - XQuery Error
> +
> +# recent SQL versions define quite a few codes in this class, but for now
> +# we are only using this generic one
> +10608    E    ERRCODE_INVALID_ARGUMENT_FOR_XQUERY                            invalid_argument_for_xquery

Could you share what SQL standard document version you got this from?  I 
don't see this particular code in any version I have.



Commits

  1. Neaten up our choices of SQLSTATEs for XML-related errors.