pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix pg_event_trigger_ddl_commands for GRANT ON PROPERTY GRAPH
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix pg_event_trigger_ddl_commands for GRANT ON PROPERTY GRAPH
@ 2026-08-27 09:58 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2026-08-27 09:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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: 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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Fix pg_event_trigger_ddl_commands for GRANT ON PROPERTY GRAPH
@ 2026-08-27 09:58 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2026-08-27 09:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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: 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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2026-08-27 09:58 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-08-27 09:58 pgsql: Fix pg_event_trigger_ddl_commands for GRANT ON PROPERTY GRAPH Peter Eisentraut <peter@eisentraut.org>
2026-08-27 09:58 pgsql: Fix pg_event_trigger_ddl_commands for GRANT ON PROPERTY GRAPH Peter Eisentraut <peter@eisentraut.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox