Re: BUG #19878: pg_identify_object functions expose XX000 for unsupported class IDs

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: imchifan(at)mail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19878: pg_identify_object functions expose XX000 for unsupported class IDs
Date: 2026-11-11 14:06:30
Message-ID: 486DE4AD-F479-4610-8A1E-FA1B06AD5FCF@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> On 11 Nov 2026, at 14:09, PG Bug reporting form <noreply(at)postgresql(dot)org> wrote:

> Passing an unsupported class ID to pg_identify_object() or
> pg_identify_object_as_address() produces SQLSTATE XX000 (internal_error).
> These public object-address inspection functions should classify invalid
> user input as SQLSTATE 22023 (invalid_parameter_value) instead.

That's not a bug, but a feature enhancement request. If you would like to see
another errcode then feel free to submit a patch and argue for it's value.

--
Daniel Gustafsson

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2026-11-11 14:13:50 BUG #19884: pg_publication_tables omits a detach-pending partition in root mode
Previous Message PG Bug reporting form 2026-11-11 14:04:19 BUG #19883: Partition pruning errors on SubPlan inside = ANY array