Re: HOT and INSERT/DELETE - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: HOT and INSERT/DELETE
Date
Msg-id 200708090650.l796opK25172@momjian.us
Whole thread Raw
In response to Re: HOT and INSERT/DELETE  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
List pgsql-hackers
Pavan Deolasee wrote:
> On 8/9/07, Bruce Momjian <bruce@momjian.us> wrote:
> >
> > I was wondering about HOT behavior.
> >
> > Will an INSERT reuse rows no longer visible caused by an UPDATE or
> > DELETE, or if an UPDATE will reuse rows expired by an invisible DELETE?
> > It seems both of these would be possible and useful.
> 
> 
> 
> As the patch stands today, we don't take any pains to update the
> FSM information after pruning and defraging the page. So FSM would
> not consider the page for either INSERT or COLD UPDATE. Of course,
> the page can still be used for INSERT if relation->rd_targetblock is
> somehow set to this page.
> 
> OTOH UPDATE will always reuse the dead space of either expired
> updated rows or deleted rows or even aborted rows.

Well, that is very good news.

--  Bruce Momjian  <bruce@momjian.us>          http://momjian.us EnterpriseDB
http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: "Pavan Deolasee"
Date:
Subject: Re: GUC for default heap fillfactor
Next
From: "Pavan Deolasee"
Date:
Subject: Re: HOT patch, missing things