| От | Kevin Grittner |
|---|---|
| Тема | Re: Can autovacuum result in large surges in WAL files |
| Дата | |
| Msg-id | 4DBFF5AE020000250003D1D9@gw.wicourts.gov обсуждение |
| Ответ на | Can autovacuum result in large surges in WAL files (Todd Gugler <tgugler11@gmail.com>) |
| Список | pgsql-admin |
Todd Gugler <tgugler11@gmail.com> wrote: > Should a vacuum analyze lead to large amounts of data being > written to WAL files? Yes, if it has to "freeze" the rows to prevent transaction wraparound. > We are seeing 10x the number WAL files that we would expect. > > Any ideas on the best approach to diagnose what is going on? Is it vacuuming a table which was bulk loaded at some time in the past? If so, this can happen any time later (usually during busy periods when many transactions numbers are being assigned). To prevent this in the future, run VACUUM FREEZE ANALYZE after any bulk load. There has been much talk about possible ways to avoid this behavior by initially setting bulk loaded data to "frozen", but there are technical problems which haven't been adequately addressed yet. -Kevin
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера