> 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