Re: [EXT] Re: Does cancelling autovacuum make you lose all the work it did?
В списке pgsql-novice по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [EXT] Re: Does cancelling autovacuum make you lose all the work it did? |
| Дата | |
| Msg-id | 798972.1592018308@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [EXT] Re: Does cancelling autovacuum make you lose all the workit did? ("Greg Rychlewski (LCL)" <Greg.Rychlewski@loblaw.ca>) |
| Список | pgsql-novice |
"Greg Rychlewski (LCL)" <Greg.Rychlewski@loblaw.ca> writes:
> Thanks for your reply. Regarding it being blocked, I don't think it is but I could be wrong. Both wait_event and
wait_event_typeare null. One thing I noticed though is that n_dead_tup in pg_stat_all_tables either stays the same or
goesup. Should this be going down during the autovacuum?
No ... ongoing transactions could be creating new dead rows. IIRC,
a vacuum won't report its removal of dead rows to the stats collector
till the very end, so what I'd expect is a big drop when it finishes.
(I am not sure offhand what happens to those stats if you cancel the
vacuum partway through --- it might report nothing, causing the
stats to be way off until the next successful vacuum.)
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера