BUG #18937: New error class 10 for XQuery errors lacks a "standard" error code - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #18937: New error class 10 for XQuery errors lacks a "standard" error code
Date
Msg-id 18937-16eeda8ba8e91c59@postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      18937
Logged by:          Alexey Borzov
Email address:      borz_off@cs.msu.su
PostgreSQL version: 18beta1
Operating system:   Irrelevant
Description:

The docs for Postgres error codes (
https://www.postgresql.org/docs/18/errcodes-appendix.html ) claim:
>  For each error class there is a “standard” error code having the last
three characters 000. This code is used only for error conditions that fall
within the class but do not have any more-specific code assigned.
However, the new class "Class 10 — XQuery Error" described on the same page
has only a single specific error code
> 10608         invalid_argument_for_xquery
code 10000 is not available
This is the commit that introduced it:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=cd838e200880c6f52c5b5e30887e5ff584876bef


pgsql-bugs by date:

Previous
From: Christoph Berg
Date:
Subject: Re: Logical replication 'invalid memory alloc request size 1585837200' after upgrading to 17.5
Next
From: Chris Gooch
Date:
Subject: RE: [EXT] Re: GSS Auth issue when user member of lots of AD groups