| От | Tom Lane |
|---|---|
| Тема | Re: After how many updates should a vacuum be performed? |
| Дата | |
| Msg-id | 12738.1158164349@sss.pgh.pa.us обсуждение |
| Ответ на | After how many updates should a vacuum be performed? (Ellen Cyran <ellen@urban.csuohio.edu>) |
| Ответы |
Re: After how many updates should a vacuum be performed?
|
| Список | pgsql-admin |
Ellen Cyran <ellen@urban.csuohio.edu> writes:
> We have a database that periodically we perform large updates, around
> a million records, after that the vacuum will run for 12 hours without
> completing. After that, I typically remove the 2 indexes and 1
> constraint on the largest table, 7 million records, and the vacuum will
> complete in a couple of hours and the indexes can be recreated in a half
> hour.
By "vacuum" do you mean VACUUM FULL? My advice is not to use that,
just plain VACUUM. Don't forget to make sure your FSM is large enough,
too.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера