| От | Tom Lane |
|---|---|
| Тема | Re: Vacuum on the database versus individual tables. |
| Дата | |
| Msg-id | 23413.1245946840@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Vacuum on the database versus individual tables. (Dave Page <dpage@pgadmin.org>) |
| Список | pgsql-general |
Dave Page <dpage@pgadmin.org> writes:
> pgAdmin will advise vacuuming a table if there is a significant
> discrepancy between the number of rows in the table and the value in
> pg_class.reltuples. i forget the exact algorithm off-hand, but it
> takes the size of the table into account, and is looking for a %age
> difference between the value, not a set number of rows.
What actually counts is the tuple density (ie, the reltuples/relpages
ratio). I would hope that it's checking whether that is off from
reality, not whether the absolute value is correct. Otherwise it's
going to be recommending useless vacuums.
(Actually, I'm not sure such a functionality is needed at all anymore
unless the user has disabled autovacuum...)
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера