Re: HOT patch - version 15 - Mailing list pgsql-patches

From Florian Pflug
Subject Re: HOT patch - version 15
Date
Msg-id 46E58763.6030508@gmail.com
Whole thread Raw
In response to Re: HOT patch - version 15  (Bruce Momjian <bruce@momjian.us>)
Responses Re: HOT patch - version 15  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
List pgsql-patches
Bruce Momjian wrote:
> Looking at the patch I see:
>
> +       /*
> +        * Mark the page as clear of prunable tuples. If we find a tuple which
> +        * may become prunable, we shall set the hint again.
> +        */
> +       PageClearPrunable(page);
>
> I like the idea of the page hint bit, but my question is if there is a
> long-running transaction, isn't each SELECT going to try to defragment a
> page over and over again because there is still something prunable on
> the page?

Maybe that risk could be lowered if instead of a flag, we stored the
minimal global xmin needed to prune at least one tuple.

greetings, Florian Pflug



pgsql-patches by date:

Previous
From: Gregory Stark
Date:
Subject: Re: HOT patch - version 15
Next
From: Simon Riggs
Date:
Subject: Re: HOT patch - version 15