Re: Open issues for HOT patch - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Open issues for HOT patch
Date
Msg-id 46EFAA00.80406@enterprisedb.com
Whole thread Raw
In response to Re: Open issues for HOT patch  (Bruce Momjian <bruce@momjian.us>)
List 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 by date:

Previous
From: Markus Schiltknecht
Date:
Subject: Re: Raw device I/O for large objects
Next
From: Heikki Linnakangas
Date:
Subject: Re: Open issues for HOT patch