Re: Vacuum Full does not release the disk size space after delete from table
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Vacuum Full does not release the disk size space after delete from table |
| Дата | |
| Msg-id | 17999.1541169312@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Vacuum Full does not release the disk size space after delete from table (Haozhou Wang <hawang@pivotal.io>) |
| Ответы |
Re: Vacuum Full does not release the disk size space after deletefrom table
|
| Список | pgsql-hackers |
Haozhou Wang <hawang@pivotal.io> writes:
> We meet a corner case that related to the behavior of Vacuum Full.
> ...
> If we run both sql scripts on same database in parallel, the "VACUUM FULL
> a;" will not release the disk space.
I think what's happening is that the delete in script 1 happens after the
"pg_sleep" in script 2 starts. Then the pg_sleep has an open snapshot
that could potentially see the deleted rows, so they can't be removed yet.
You could check this theory by changing the vacuum to use VERBOSE, and
seeing what it says about rows that can't be removed yet.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера