Re: Open issues for HOT patch

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Open issues for HOT patch
Дата
Msg-id 46EFAA00.80406@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Open issues for HOT patch  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian wrote:
> If we only prune on an update (or insert) why not just do prune every
> time?  I figure the prune/defrag has to be lighter than the
> update/insert itself.

Pruning is a quite costly operation. You need to check the visibility of
each tuple on the page, following tuple chains as you go, mark line
pointers as not used or redirected, and finally memmove all the tuples
to remove the gaps between them. And it needs to be WAL-logged.

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


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

Предыдущее
От: Markus Schiltknecht
Дата:
Сообщение: Re: Raw device I/O for large objects
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Open issues for HOT patch