agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
pgsql: Prohibit GRANT ... ON TABLE on a property graph
2+ messages / 1 participants
[nested] [flat]

* pgsql: Prohibit GRANT ... ON TABLE on a property graph
@ 2026-08-04 08:16  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 2+ messages in thread

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

Prohibit GRANT ... ON TABLE on a property graph

We allowed GRANT ... ON TABLE on sequences for backward compatibility.
We don't need to consider backward compatibility in case of property
graphs since we will be prohibiting its usage on property graph from
the very release which introduced property graphs.

Change regression tests that used GRANT ... ON [TABLE] on property
graphs to use GRANT ... ON PROPERTY GRAPH instead.

While here, add the missing RELKIND_PROPGRAPH cases in
pg_class_aclmask_ext() and in the object-type switch in
ExecGrant_Relation() so that the default ACL and the objtype passed to
restrict_and_check_grant() are correct.

Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Noah Misch <noah@leadboat.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/20260630023308.c7.noahmisch@microsoft.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fa62d4f6ea7529aa75105aa1ed3b43477ab365a0

Modified Files
--------------
src/backend/catalog/aclchk.c                        | 20 +++++++++++++++++++-
src/test/regress/expected/create_property_graph.out |  3 +++
src/test/regress/expected/graph_table_rls.out       |  6 +++---
src/test/regress/expected/privileges.out            |  4 ++--
src/test/regress/sql/create_property_graph.sql      |  1 +
src/test/regress/sql/graph_table_rls.sql            |  6 +++---
src/test/regress/sql/privileges.sql                 |  4 ++--
7 files changed, 33 insertions(+), 11 deletions(-)



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

* pgsql: Prohibit GRANT ... ON TABLE on a property graph
@ 2026-08-04 08:16  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 2+ messages in thread

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

Prohibit GRANT ... ON TABLE on a property graph

We allowed GRANT ... ON TABLE on sequences for backward compatibility.
We don't need to consider backward compatibility in case of property
graphs since we will be prohibiting its usage on property graph from
the very release which introduced property graphs.

Change regression tests that used GRANT ... ON [TABLE] on property
graphs to use GRANT ... ON PROPERTY GRAPH instead.

While here, add the missing RELKIND_PROPGRAPH cases in
pg_class_aclmask_ext() and in the object-type switch in
ExecGrant_Relation() so that the default ACL and the objtype passed to
restrict_and_check_grant() are correct.

Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Noah Misch <noah@leadboat.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/20260630023308.c7.noahmisch@microsoft.com

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4054ec5b4f39272f5009516db19fb7c253989ebd

Modified Files
--------------
src/backend/catalog/aclchk.c                        | 20 +++++++++++++++++++-
src/test/regress/expected/create_property_graph.out |  3 +++
src/test/regress/expected/graph_table_rls.out       |  6 +++---
src/test/regress/expected/privileges.out            |  4 ++--
src/test/regress/sql/create_property_graph.sql      |  1 +
src/test/regress/sql/graph_table_rls.sql            |  6 +++---
src/test/regress/sql/privileges.sql                 |  4 ++--
7 files changed, 33 insertions(+), 11 deletions(-)



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


end of thread, other threads:[~2026-08-04 08:16 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-08-04 08:16 pgsql: Prohibit GRANT ... ON TABLE on a property graph Peter Eisentraut <peter@eisentraut.org>
2026-08-04 08:16 pgsql: Prohibit GRANT ... ON TABLE on a property graph Peter Eisentraut <peter@eisentraut.org>

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