Re: pg_identify_object_as_address() doesn't support pg_event_trigger oids
Joel Jacobson <joel@compiler.org>
From: "Joel Jacobson" <joel@compiler.org>
To: "Alvaro Herrera" <alvherre@alvh.no-ip.org>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2021-04-24T06:08:04Z
Lists: pgsql-hackers
On Thu, Apr 22, 2021, at 19:32, Alvaro Herrera wrote:
> On 2021-Apr-22, Joel Jacobson wrote:
>
> > Is $SUBJECT intentional, or would it be desirable to add support it?
> >
> > Example:
> >
> > SELECT * FROM pg_catalog.pg_event_trigger;
> > oid | evtname | evtevent | evtowner | evtfoid | evtenabled | evttags
> > -----------+---------------+-----------------+----------+-----------+------------+---------
> > 289361636 | ddl_postgrest | ddl_command_end | 16696 | 289361635 | O |
> > (1 row)
> >
> > SELECT * FROM pg_identify_object_as_address('pg_event_trigger'::regclass,289361636,0);
> > ERROR: requested object address for unsupported object class 32: text result "ddl_postgrest"
>
> Hmm, I think this is an accidental omission and it should be supported.
I've added the patch to the commitfest and added you as a reviewer, hope that works.
/Joel
Commits
-
Fix pg_identify_object_as_address() with event triggers
- 6e41ff0562d3 9.6.22 landed
- 90c9bad307bf 10.17 landed
- 5b717e13c90b 11.12 landed
- 7e76cb1d82bc 12.7 landed
- f3c453787684 13.3 landed
- f7aab36d61fd 14.0 landed