Re: Only owners can ANALYZE tables...seems overly restrictive
От | Albe Laurenz |
---|---|
Тема | Re: Only owners can ANALYZE tables...seems overly restrictive |
Дата | |
Msg-id | A737B7A37273E048B164557ADEF4A58B538045A3@ntex2010i.host.magwien.gv.at обсуждение исходный текст |
Ответ на | 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
|
Список | pgsql-general |
David G. Johnston wrote: > On Mon, Feb 29, 2016 at 2:52 AM, Albe Laurenz <laurenz.albe@wien.gv.at> wrote: >> John R Pierce wrote: >>> analyze has arguably fewer side effects, its a performance enhancement, >>> its neither altering the schema or changing the data. >> In a production environment you don't want a user to change your table >> statistics. >> >> They could just set default_statistics_target to something stupid, >> run ANALYZE and wreck the statistics for everyone. >> And then come back to the DBA and complain that things don't work. >> >> We have a policy that users are not table owners, and with the >> current behaviour we can be certain that any bad table statistics >> are the fault of the DBA or wrong configuration. > Setting default_statistics_target and running ANALYZE are two entirely different things. Setting default_statistics_target affects the statistics computed by ANALYZE, so I cannot follow you here. Yours, Laurenz Albe
В списке pgsql-general по дате отправления: