Re: [PATCHES] VACUUM Improvements - WIP Patch

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: [PATCHES] VACUUM Improvements - WIP Patch
Дата
Msg-id 487C5E96.1020907@enterprisedb.com
обсуждение исходный текст
Ответ на Re: [PATCHES] VACUUM Improvements - WIP Patch  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-hackers
Gregory Stark wrote:
> I thought
> we only pruned when we wanted to insert a new tuple and found not enough
> space.

Nope, we prune on any access to the page, if the page is "full enough", 
and the pd_prune_xid field suggests that there is something to prune.

The problem with only pruning on inserts is that by the time we get to 
heap_insert/heap_update, we're already holding a pin on the page, which 
prevents us from acquiring the vacuum lock.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: ITAGAKI Takahiro
Дата:
Сообщение: Re: [PATCHES] WIP: executor_hook for pg_stat_statements
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: [PATCHES] WIP: executor_hook for pg_stat_statements