From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: borz_off@cs.msu.su
Subject: BUG #18937: New error class 10 for XQuery errors lacks a "standard" error code
Date: Tue, 27 May 2025 10:11:58 +0000
Message-ID: <18937-16eeda8ba8e91c59@postgresql.org> (raw)
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=cd838e200880c6f52c5b5e30887e5ff58...
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, borz_off@cs.msu.su
Subject: Re: BUG #18937: New error class 10 for XQuery errors lacks a "standard" error code
In-Reply-To: <18937-16eeda8ba8e91c59@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox