Re: allow granting CLUSTER, REFRESH MATERIALIZED VIEW, and REINDEX
Jeff Davis <pgsql@j-davis.com>
From: Jeff Davis <pgsql@j-davis.com>
To: Michael Paquier <michael@paquier.xyz>, Nathan Bossart <nathandbossart@gmail.com>
Cc: Ted Yu <yuzhihong@gmail.com>, Pavel Luzanov <p.luzanov@postgrespro.ru>, Justin Pryzby <pryzby@telsasoft.com>, pgsql-hackers@postgresql.org
Date: 2023-06-20T16:16:59Z
Lists: pgsql-hackers
On Tue, 2023-06-20 at 14:26 +0900, Michael Paquier wrote: > TBH, I have a mixed feeling about this line of reasoning because > MAINTAIN is much broader and less specific than TRUNCATE, for > instance, being spawned across so much more operations. ... > Some users may find that surprising as they > used to have more control over these operations as owners of the > relations worked on. It seems like the user shouldn't be surprised if they can carry out the action; nor should they be surprised if they can't carry out the action. Having privileges revoked on a table from the table's owner is an edge case in behavior and both make sense to me. In the absense of a use case, I'd be inclined towards just being consistent with the other privileges. Regards, Jeff Davis
Commits
-
Improve privilege documentation for maintenance commands.
- c2122aae636d 16.0 landed
-
Fix cache lookup hazards introduced by ff9618e82a.
- 4dbdb82513b6 16.0 landed
-
Move bool parameter for vacuum_rel() to option bits.
- 5b1a87994312 16.0 landed
-
Fix MAINTAIN privileges for toast tables and partitions.
- ff9618e82a46 16.0 landed
-
Add grantable MAINTAIN privilege and pg_maintain role.
- 60684dd834a2 16.0 landed