Re: Add pg_get_acl() function get the ACL for a database object

From: Isaac Morland <isaac(dot)morland(at)gmail(dot)com>
To: Joel Jacobson <joel(at)compiler(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add pg_get_acl() function get the ACL for a database object
Date: 2024-06-19 14:23:45
Message-ID: CAMsGm5deS=Qk9OHK_jCOBOpt=RHb2UxKdXfCeXzPoi_yjwiSVA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 19 Jun 2024 at 07:35, Joel Jacobson <joel(at)compiler(dot)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)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Pyhalov 2024-06-19 14:24:18 Re: Inconsistency between try_mergejoin_path and create_mergejoin_plan
Previous Message Joel Jacobson 2024-06-19 14:21:43 Re: Add pg_get_acl() function get the ACL for a database object