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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Only owners can ANALYZE tables...seems overly restrictive
Дата
Msg-id 4167.1456721904@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Only owners can ANALYZE tables...seems overly restrictive  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Only owners can ANALYZE tables...seems overly restrictive  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Only owners can ANALYZE tables...seems overly restrictive  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> Given the amount of damage a person with write access to a table can get
> into it seems pointless to not allow them to analyze the table after their
> updates - since best practices would say that normal work with a table
> should not be performed by an owner.

> 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.

            regards, tom lane


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

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