Re: bloatcheck.sql

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: bloatcheck.sql
Дата
Msg-id 1521952441.2350.4.camel@cybertec.at
обсуждение исходный текст
Ответ на bloatcheck.sql  (A System Admin <asysad@gmail.com>)
Список pgsql-admin
A System Admin wrote:
> The author of this SQL indicates that any output for the hot_update_ratio that falls below
> 0.95 indicates that action needs to be taken over and above the autovacuuming that is setup
> for this DB based on its levels of bloat.
> 
> My questions are:
> 
> 1. Is this an accurate statement in your opinion for this and all PostgreSQL v9.5.9 DB's?

Nothing could be farther from the truth.

HOT update ratio has nothing to do with bloat; if anything, bloat
would *increase* the HOT ratio because there is more free space.

A low HOT update ratio could just mean that you have a lot of
indexes, because no HOT update can take place if an indexed column
is modified.

> 3. What specific ongoing/regular step(s) need to occur outside of the hourly and weekly
> commands currently being run on the DB for it to remain in an optimally performant state?

Neither regular reindexing nor VACUUM (FULL) is recommended,
although it cannot harm if you don't mind the down time.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com


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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: bloatcheck.sql
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Function search_path