Add pg_get_acl() to get the ACL for a database object
authorMichael Paquier <[email protected]>
Thu, 4 Jul 2024 08:09:06 +0000 (17:09 +0900)
committerMichael Paquier <[email protected]>
Thu, 4 Jul 2024 08:09:06 +0000 (17:09 +0900)
commit4564f1cebd437d93590027c9ff46ef60bc3286ae
tree97cc05025318fb6105986f781547ac12f1daa927
parent3a8a1f3254b2e3e981a91cb021ea0e9fdb5c3b9c
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
doc/src/sgml/func.sgml
src/backend/catalog/objectaddress.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/test/regress/expected/privileges.out
src/test/regress/sql/privileges.sql