Fix pg_event_trigger_ddl_commands for GRANT ON PROPERTY GRAPH

stringify_grant_objtype() treated OBJECT_PROPGRAPH as unused, so
pg_event_trigger_ddl_commands() failed with "unsupported object type"
when a ddl_command_end trigger inspected GRANT/REVOKE on a property
graph.  Return "PROPERTY GRAPH" like the GRANT command syntax.

Bug: #19637
Reported-by: Alexander Lakhin <[email protected]>
Author: Andrey Rachitskiy <[email protected]>
Reviewed-by: Fujii Masao <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/flat/19637-4446f72945492ed8%40postgresql.org

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/63f8e9773aadba37661f70629a0a0e8f5933afc8

Modified Files
--------------
src/backend/commands/event_trigger.c        |  3 ++-
src/test/regress/expected/event_trigger.out | 21 ++++++++++++++++-----
src/test/regress/sql/event_trigger.sql      | 11 ++++++++---
3 files changed, 26 insertions(+), 9 deletions(-)

Reply via email to