pgsql: Fix pg_event_trigger_ddl_commands for GRANT ON PROPERTY GRAPH
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 <exclusion@gmail.com>
Author: Andrey Rachitskiy <pl0h0yp1@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: /messages/by-id/19637-4446f72945492ed8@postgresql.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(-)