|From:||Nathan Bossart <nathandbossart(at)gmail(dot)com>|
|To:||Jeff Davis <pgsql(at)j-davis(dot)com>|
|Subject:||Re: allow granting CLUSTER, REFRESH MATERIALIZED VIEW, and REINDEX|
|Views:||Raw Message | Whole Thread | Download mbox | Resend email|
On Sat, Dec 10, 2022 at 12:41:09PM -0800, Nathan Bossart wrote:
> On Sat, Dec 10, 2022 at 12:07:12PM -0800, Jeff Davis wrote:
>> It seems like the discussion on VACUUM/CLUSTER/REINDEX privileges is
>> happening in the other thread. What would you like to accomplish in
>> this thread?
> Given the feedback in the other thread , I was planning to rewrite this
> patch to create a MAINTAIN privilege and a pg_maintain_all_tables
> predefined role that allowed VACUUM, ANALYZE, CLUSTER, REFRESH MATERIALIZED
> VIEW, and REINDEX.
Patch attached. I ended up reverting some parts of the VACUUM/ANALYZE
patch that were no longer needed (i.e., if the user doesn't have permission
to VACUUM, we don't need to separately check whether the user has
permission to ANALYZE). Otherwise, I don't think there's anything
tremendously different between v1 and v2 besides the fact that all the
privileges are grouped together.
Since there are only 15 privilege bits used after this patch is applied,
presumably we could revert widening AclMode to 64 bits. However, I imagine
that will still be necessary at some point in the near future, so I don't
see a strong reason to revert it.
Amazon Web Services: https://aws.amazon.com
|Next Message||Peter Geoghegan||2022-12-12 20:13:02||Re: Why does L&Y Blink Tree need lock coupling?|
|Previous Message||Alvaro Herrera||2022-12-12 19:43:35||Re: PGDOCS - Logical replication GUCs - added some xrefs|