| От | Tom Lane |
|---|---|
| Тема | Re: LWLock contention: I think I understand the problem |
| Дата | |
| Msg-id | 9390.1010421575@sss.pgh.pa.us обсуждение |
| Ответ на | Re: LWLock contention: I think I understand the problem (Hannu Krosing <hannu@tm.ee>) |
| Ответы |
Re: LWLock contention: I think I understand the problem
|
| Список | pgsql-hackers |
Hannu Krosing <hannu@tm.ee> writes:
> Was it not the case that instead of locking whole tables the new
> vacuum locks only one page at a time. If it can't lock that page it
> just moves to next one instead of waiting for other backend to release
> its lock.
No, it just waits till it can get the page lock.
The only conditional part of the new vacuum algorithm is truncation of
the relation file (releasing empty end pages back to the OS). That
requires exclusive lock on the relation, which it will not be able to
get if there are any other users of the relation. In that case it
forgets about truncation and just leaves the empty pages as free space.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера