BUG #18937: New error class 10 for XQuery errors lacks a "standard" error code

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: borz_off(at)cs(dot)msu(dot)su
Subject: BUG #18937: New error class 10 for XQuery errors lacks a "standard" error code
Date: 2025-05-27 10:11:58
Message-ID: 18937-16eeda8ba8e91c59@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18937
Logged by: Alexey Borzov
Email address: borz_off(at)cs(dot)msu(dot)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

Browse pgsql-bugs by date

  From Date Subject
Next Message Laurenz Albe 2025-05-27 10:24:33 Re: SIMILAR TO expressions translate wildcards where they shouldn't
Previous Message Michael Paquier 2025-05-27 05:57:45 Re: SIMILAR TO expressions translate wildcards where they shouldn't