When manual analyze is needed

Поиск
Список
Период
Сортировка
От veem v
Тема When manual analyze is needed
Дата
Msg-id CAB+=1TWsJHEfZmfUp_7KSt04dTJhAf4A3m9moiaJrS-hwCyq8Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: When manual analyze is needed
Список pgsql-general
Hi,
We see in one of the RDS postgres instances, from pg_stat_user_tables , the auto vacuum and auto analyze happening on the tables without our manual intervention. 

So is auto vacuum analyze is sufficient  to make sure optimal stats and unbloated table structure in place or should we do it manually based on the type of tables like 
for e.g. 
if a table is having just insert only types and getting similar amount of data throughout the day 24*7 
VS 
a table which is getting bulk data load once a day only 
VS  
a volatile table with truncate load kind of operation 
VS 
a table with heavy Update/deletes also happening along with inserts throughout the day 24*7. 

Will auto vacuum/analyze take care of all such tables, or we need to do it manually in certain scenarios?
And if any suboptimal plan is taken by the optimizer for a specific query suddenly, because of the missing stats , how to catch that. Basically, how to get the old plan hash and get it compared with the current plan hash?

Regards
Veem

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

Предыдущее
От: Christophe Pettus
Дата:
Сообщение: Re: How to add columns faster
Следующее
От: "Peter J. Holzer"
Дата:
Сообщение: Re: Orphan files filling root partition after crash