[PATCH] Re: pg_identify_object_as_address() doesn't support pg_event_trigger oids - Mailing list pgsql-hackers

From Joel Jacobson
Subject [PATCH] Re: pg_identify_object_as_address() doesn't support pg_event_trigger oids
Date
Msg-id cd7130ae-86fc-4bef-ba10-4abca1af6423@www.fastmail.com
Whole thread Raw
In response to Re: pg_identify_object_as_address() doesn't support pg_event_trigger oids  ("Joel Jacobson" <joel@compiler.org>)
Responses Re: [PATCH] Re: pg_identify_object_as_address() doesn't support pg_event_trigger oids
List pgsql-hackers
On Fri, Apr 23, 2021, at 08:54, Joel Jacobson wrote:
pg_describe_object            | event trigger ddl_postgrest
pg_identify_object            | ("event trigger",,ddl_postgrest,ddl_postgrest)
pg_identify_object_as_address | ("event trigger",{},{})

I therefore think the evtname should be added to object_names.

Could it possibly be as simple to fix as the attached patch?
Not sure if the the string constructed by appendStringInfo() also needs to be adjusted.

With the patch, the example above returns:

pg_identify_object_as_address | ("event trigger",{ddl_postgrest},{})

/Joel
Attachment

pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: wal stats questions
Next
From: Peter Eisentraut
Date:
Subject: Re: truncating timestamps on arbitrary intervals