Re: autovacuum locking question

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема Re: autovacuum locking question
Дата
Msg-id 20191206174934.GR2082@telsasoft.com
обсуждение исходный текст
Ответ на Re: autovacuum locking question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
On Thu, Dec 05, 2019 at 06:49:06PM -0500, Tom Lane wrote:
> The only part that would get canceled in response to somebody taking a
> non-exclusive lock is the last step, which is truncation of unused blocks at
> the end of the table; that requires an exclusive lock.

On Thu, Dec 05, 2019 at 06:55:02PM -0500, Jeff Janes wrote:
> If the vacuum finds a lot of empty pages at the end of the table, it will
> try to truncate them and takes a strong lock to do so.

Should the exclusive lock bit be documented ?
https://www.postgresql.org/docs/12/explicit-locking.html




В списке pgsql-performance по дате отправления:

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: autovacuum locking question
Следующее
От: MichaelDBA
Дата:
Сообщение: Re: autovacuum locking question