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: Extend pg_get_acl() to handle sub-object IDs
Date: Wed, 10 Jul 2024 01:14:46 +0000
Message-ID: <E1sRLuw-0013bc-C4@gemulon.postgresql.org> (raw)

Extend pg_get_acl() to handle sub-object IDs

This patch modifies the pg_get_acl() function to accept a third argument
called "objsubid", bringing it on par with similar functions in this
area like pg_describe_object().  This enables the retrieval of ACLs for
relation attributes when scanning dependencies.

Bump catalog version.

Author: Joel Jacobson
Discussion: https://postgr.es/m/f2539bff-64be-47f0-9f0b-df85d3cc0432@app.fastmail.com

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/func.sgml                   |  6 ++---
src/backend/catalog/objectaddress.c      | 43 ++++++++++++++++++++++++--------
src/include/catalog/catversion.h         |  2 +-
src/include/catalog/pg_proc.dat          |  2 +-
src/test/regress/expected/privileges.out | 32 +++++++++++++++++++++---
src/test/regress/sql/privileges.sql      | 12 ++++++---
6 files changed, 73 insertions(+), 24 deletions(-)



Message-ID: <E1sRLuw-0013bc-C4@gemulon.postgresql.org>
Permalink:  ../E1sRLuw-0013bc-C4@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sRLuw-0013bc-C4@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: Extend pg_get_acl() to handle sub-object IDs
  In-Reply-To: <E1sRLuw-0013bc-C4@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