Re: Perplexing, regular decline in performance

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема Re: Perplexing, regular decline in performance
Дата
Msg-id 20190625160106.GD18602@telsasoft.com
обсуждение исходный текст
Ответ на Re: Perplexing, regular decline in performance  (Benjamin Scherrey <scherrey@proteus-tech.com>)
Список pgsql-performance
On Tue, Jun 25, 2019 at 10:55:22PM +0700, Benjamin Scherrey wrote:
> Have you done a VACUUM ANALYZE FULL on your database? This needs to be done
> periodically to inform the server of the statistics of how the data and
> relations are distributed across the database.

I think this is wrong.

VACUUM and ANALYZE are good, but normally happen automatically by autovacuum.

VACUUM FULL takes an exclusive lock on the table, and rewrites its data and
indices from scratch.  It's not normally necessary at all.  It's probably most
useful to recover from badly-bloated table if autovacuum didn't run often
enough, in which case the permanent solution is to change autovacuum settings
to be more aggressive.

Don't confuse with VACUUM FREEZE, which doesn't require exclusive lock, and
normally not necessary if autovacuum is working properly.

Justin



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

Предыдущее
От: Benjamin Scherrey
Дата:
Сообщение: Re: Perplexing, regular decline in performance
Следующее
От: Benjamin Scherrey
Дата:
Сообщение: Re: Perplexing, regular decline in performance