Re: Only owners can ANALYZE tables...seems overly restrictive

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Only owners can ANALYZE tables...seems overly restrictive
Дата
Msg-id 56D3DB4B.2040807@hogranch.com
обсуждение исходный текст
Ответ на Re: Only owners can ANALYZE tables...seems overly restrictive  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Only owners can ANALYZE tables...seems overly restrictive  (Vitaly Burovoy <vitaly.burovoy@gmail.com>)
Re: Only owners can ANALYZE tables...seems overly restrictive  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Список pgsql-general
On 2/28/2016 8:58 PM, Tom Lane wrote:
>> >I should the check for whether a given user can or cannot analyze a table
>> >should be whether the user has INSERT, UPDATE, or DELETE privileges.
> By that argument, we should allow anyone with any write access to do
> TRUNCATE.  Or perhaps even DROP TABLE.  I'm not impressed.


I don't see why anyone with delete privileges shouldn't be able to
truncate (after all, thats the same as deleting all records).

analyze has arguably fewer side effects, its a performance enhancement,
its neither altering the schema or changing the data.



--
john r pierce, recycling bits in santa cruz



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Only owners can ANALYZE tables...seems overly restrictive
Следующее
От: Vitaly Burovoy
Дата:
Сообщение: Re: Only owners can ANALYZE tables...seems overly restrictive