pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix pg_event_trigger_ddl_commands for GRANT ON PROPERTY GRAPH
Date: Thu, 27 Aug 2026 09:58:58 +0000
Message-ID: <E1wzWsr-00000002KBv-2Urn@gemulon.postgresql.org> (raw)

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



view thread (2+ messages)

Message-ID: <E1wzWsr-00000002KBv-2Urn@gemulon.postgresql.org>
Permalink:  ../E1wzWsr-00000002KBv-2Urn@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wzWsr-00000002KBv-2Urn@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix pg_event_trigger_ddl_commands for GRANT ON PROPERTY GRAPH
  In-Reply-To: <E1wzWsr-00000002KBv-2Urn@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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