pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add pg_get_acl() to get the ACL for a database object
Date: Thu, 04 Jul 2024 08:09:25 +0000
Message-ID: <E1sPHWu-000GPc-0z@gemulon.postgresql.org> (raw)

Add pg_get_acl() to get the ACL for a database object

This function returns the ACL for a database object, specified by
catalog OID and object OID.  This is useful to be able to
retrieve the ACL associated to an object specified with a
(class_id,objid) couple, similarly to the other functions for object
identification, when joined with pg_depend or pg_shdepend.

Original idea by Álvaro Herrera.

Bump catalog version.

Author: Joel Jacobson
Reviewed-by: Isaac Morland, Michael Paquier, Ranier Vilela
Discussion: https://postgr.es/m/80b16434-b9b1-4c3d-8f28-569f21c2c102@app.fastmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4564f1cebd437d93590027c9ff46ef60bc3286ae

Modified Files
--------------
doc/src/sgml/func.sgml                   | 41 +++++++++++++++++++++++++++
src/backend/catalog/objectaddress.c      | 48 ++++++++++++++++++++++++++++++++
src/include/catalog/catversion.h         |  2 +-
src/include/catalog/pg_proc.dat          |  5 ++++
src/test/regress/expected/privileges.out | 29 +++++++++++++++++++
src/test/regress/sql/privileges.sql      |  6 ++++
6 files changed, 130 insertions(+), 1 deletion(-)



view thread (9+ messages)  latest in thread

Message-ID: <E1sPHWu-000GPc-0z@gemulon.postgresql.org>
Permalink:  ../E1sPHWu-000GPc-0z@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sPHWu-000GPc-0z@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: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add pg_get_acl() to get the ACL for a database object
  In-Reply-To: <E1sPHWu-000GPc-0z@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