| От | Tom Lane |
|---|---|
| Тема | Re: When does VACUUM FULL not clean out all deleted data? |
| Дата | |
| Msg-id | 10656.1199426607@sss.pgh.pa.us обсуждение |
| Ответ на | When does VACUUM FULL not clean out all deleted data? (James Cloos <cloos@jhcloos.com>) |
| Ответы |
Re: When does VACUUM FULL not clean out all deleted data?
|
| Список | pgsql-admin |
James Cloos <cloos@jhcloos.com> writes:
> Right after the restore the db took up less than ten percent as much
> space as the backup. (For the backup I stopped pg and used rsync on
> the /var/lib/postgresql/data directory.)
> Why was the db using that extra five plus gigs?
Smells like a hadn't-been-vacuuming-often-enough problem.
Please note that vacuum-full-once-in-a-long-while is *not* a substitute
for frequent-plain-vacuum, because VACUUM FULL isn't good at reducing
index space usage --- in fact it usually makes it worse. Your numbers
didn't separate table vs index bloat, but I'm suspicious that a lot of
your problem was the latter.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера