Re: allow granting CLUSTER, REFRESH MATERIALIZED VIEW, and REINDEX
Alvaro Herrera <alvherre@alvh.no-ip.org>
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Pavel Luzanov <p.luzanov@postgrespro.ru>, Jeff Davis <pgsql@j-davis.com>, pgsql-hackers@postgresql.org
Date: 2022-12-14T18:05:34Z
Lists: pgsql-hackers
On 2022-Dec-14, Nathan Bossart wrote: > On Wed, Dec 14, 2022 at 12:07:13PM +0300, Pavel Luzanov wrote: > > I found that granting MAINTAIN privilege does not allow the TOAST table to > > be vacuumed. > > Hm. My first thought is that this is the appropriate behavior. WDYT? It seems wrong to me. If you can vacuum a table, surely you can also vacuum its toast table. If you can vacuum all normal tables, you should be able to vacuum all toast tables too. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "La virtud es el justo medio entre dos defectos" (Aristóteles)
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