[PATCH] 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: pgsql-hackers@lists.postgresql.org,
"Alvaro Herrera" <alvherre@alvh.no-ip.org>
Date: 2021-04-23T07:30:47Z
Lists: pgsql-hackers
Attachments
- fix-pg_identify_object_as_address-for-event-triggers.patch (application/octet-stream) patch
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
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