Re: fix and document CLUSTER privileges

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: fix and document CLUSTER privileges
Дата
Msg-id 20221208181324.GA4385@nathanxps13
обсуждение исходный текст
Ответ на Re: fix and document CLUSTER privileges  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: fix and document CLUSTER privileges  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Thu, Dec 08, 2022 at 07:20:28AM -0500, Andrew Dunstan wrote:
> We should probably talk about what the privileges should be, though. I
> think there's a case to be made that CLUSTER should be governed by the
> VACUUM privileges, given how VACUUM FULL is now implemented.

Currently, CLUSTER, REFRESH MATERIALIZED VIEW, and REINDEX (minus REINDEX
SCHEMA|DATABASE|SYSTEM) require ownership of the relation or superuser.  In
fact, all three use the same RangeVarCallbackOwnsTable() callback function.
My current thinking is that this is good enough.  I don't sense any strong
demand for allowing database owners to run these commands on all non-shared
relations, and there's ongoing work to break out the privileges to GRANT
and predefined roles.  However, I don't have a strong opinion about this.

If we do want to change the permissions model for CLUSTER, it might make
sense to change all three of the aforementioned commands to look more like
VACUUM/ANALYZE.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Nathan Bossart
Дата:
Сообщение: Re: add \dpS to psql
Следующее
От: Nathan Bossart
Дата:
Сообщение: allow granting CLUSTER, REFRESH MATERIALIZED VIEW, and REINDEX