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

Поиск
Список
Период
Сортировка
Искать
От
Joshua D. Drake
Тема
Re: Only owners can ANALYZE tables...seems overly restrictive
Дата
Msg-id
56D48926.7050108@commandprompt.com
Ответ на
Список
Дерево обсуждения
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 Stephen Frost <sfrost@snowman.net>
Re: Only owners can ANALYZE tables...seems overly restrictive "Joshua D. Drake" <jd@commandprompt.com>
Re: Only owners can ANALYZE tables...seems overly restrictive Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Only owners can ANALYZE tables...seems overly restrictive "Joshua D. Drake" <jd@commandprompt.com>
Re: Only owners can ANALYZE tables...seems overly restrictive Guillaume Lelarge <guillaume@lelarge.info>
Re: Only owners can ANALYZE tables...seems overly restrictive Vik Fearing <vik@2ndquadrant.fr>
Re: Only owners can ANALYZE tables...seems overly restrictive Bosco Rama <postgres@boscorama.com>
Re: Only owners can ANALYZE tables...seems overly restrictive Guillaume Lelarge <guillaume@lelarge.info>
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 Stephen Frost <sfrost@snowman.net>
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 Adrian Klaver <adrian.klaver@aklaver.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 Tom Lane <tgl@sss.pgh.pa.us>
Re: Only owners can ANALYZE tables...seems overly restrictive John R Pierce <pierce@hogranch.com>
Re: Only owners can ANALYZE tables...seems overly restrictive Albe Laurenz <laurenz.albe@wien.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 Albe Laurenz <laurenz.albe@wien.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 Albe Laurenz <laurenz.albe@wien.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 Tom Lane <tgl@sss.pgh.pa.us>
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 "David G. Johnston" <david.g.johnston@gmail.com>
Re: Only owners can ANALYZE tables...seems overly restrictive "Joshua D. Drake" <jd@commandprompt.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 "David G. Johnston" <david.g.johnston@gmail.com>
Re: Only owners can ANALYZE tables...seems overly restrictive Stephen Frost <sfrost@snowman.net>
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 Stephen Frost <sfrost@snowman.net>
Re: Only owners can ANALYZE tables...seems overly restrictive Vitaly Burovoy <vitaly.burovoy@gmail.com>
Re: Only owners can ANALYZE tables...seems overly restrictive "David G. Johnston" <david.g.johnston@gmail.com>
On 02/29/2016 10:06 AM, Alvaro Herrera wrote:
> Joshua D. Drake wrote:
>> On 02/29/2016 05:31 AM, Stephen Frost wrote:
>
>>> Realistically, ANALYZE is a background/maintenance task that autovacuum
>>> should be handling for you.
>>
>> Incorrect. That would be autoanalyze and although they are similar they are
>> not the same. ANALYZE is used for a number of things, not the least is query
>> profiling.
>
> I think you are confusing ANALYZE with EXPLAIN ANALYZE.

Actually I am not but I can see how it wasn't clear.

>
> I am not aware of any way in which ANALYZE is different from what you
> call "autoanalyze" (which is really just an autovacuum-invoked ANALYZE
> and for which we don't have any specific term).

One item that can be helpful from ANALYZE (not EXPLAIN ANALYZE) is 
modifying the statistics via SET, running Analyze and see if the query 
improves. You can then determine where best to set those statistics 
(usually ALTER TABLE).

Sincerely,

JD






-- 
Command Prompt, Inc.                  http://the.postgres.company/
                         +1-503-667-4564
PostgreSQL Centered full stack support, consulting and development.
Everyone appreciates your honesty, until you are honest with them.

В списке pgsql-general по дате отправления
От: Alvaro Herrera
Дата:
От: Joshua D. Drake
Дата:
FAQ