pgsql: Extend pg_get_acl() to handle sub-object IDs

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Extend pg_get_acl() to handle sub-object IDs
Date: 2024-07-10 01:14:46
Message-ID: E1sRLuw-0013bc-C4@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2024-07-10 01:25:49 Re: pgsql: Add pg_get_acl() to get the ACL for a database object
Previous Message Andrew Dunstan 2024-07-09 21:34:57 pgsql: Prevent CRLF conversion of inputs in json_parser test module