On Wed, 19 Jun 2024 at 07:35, Joel Jacobson <joel@compiler.org> wrote:
Hello hackers,
Currently, obtaining the Access Control List (ACL) for a database object requires querying specific pg_catalog tables directly, where the user needs to know the name of the ACL column for the object.
I have no idea how often this would be useful, but I wonder if it could work to have overloaded single-parameter versions for each of regprocedure (pg_proc.proacl), regclass (pg_class.relacl), …. To call, just cast the OID to the appropriate reg* type.
For example: To get the ACL for table 'example_table', call pg_get_acl ('example_table'::regclass)