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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0417bf52969a1d57f6bc92b9abd5c8a01f9bc9fe

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