Re: pg_identify_object_as_address() doesn't support pg_event_trigger oids

From: "Joel Jacobson" <joel(at)compiler(dot)org>
To: "Alvaro Herrera" <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: pg_identify_object_as_address() doesn't support pg_event_trigger oids
Date: 2021-04-24 06:08:04
Message-ID: cbcd5242-d179-4041-88c5-5511a5f91068@www.fastmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2021-04-24 06:13:26 Re: fix a comment
Previous Message Michael Paquier 2021-04-24 05:54:54 Re: multi-install PostgresNode fails with older postgres versions