Re: Maximize page freezing - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: Maximize page freezing
Date
Msg-id CAH2-WznhkTeEEH6MET+QG6fuY1HYKaixqKv97Lfp+h5fau90-Q@mail.gmail.com
Whole thread Raw
In response to Re: Maximize page freezing  (Simon Riggs <simon.riggs@enterprisedb.com>)
List pgsql-hackers
On Fri, Jul 29, 2022 at 5:55 AM Simon Riggs
<simon.riggs@enterprisedb.com> wrote:
> > I should be able to post something in a couple of weeks.
>
> How do you see that affecting this thread?

Well, it's clearly duplicative, at least in part. That in itself
doesn't mean much, but there are some general questions (that apply to
any variant of proactive/batched freezing), particularly around the
added overhead, and the question of whether or not we get to advance
relfrozenxid substantially in return for that cost. Those parts are
quite tricky.

I have every intention of addressing these thorny questions in my
upcoming patch set, which actually does far more than change the rules
about when and how we freeze -- changing the mechanism itself is very
much the easy part. I'm taking a holistic approach that involves
making an up-front decision about freezing strategy based on the
observed characteristics of the table, driven by what we see in the
visibility map at the start.

Similar questions will also apply to this patch, even though it isn't
as aggressive (your patch doesn't trigger freezing when a page is
about to be set all-visible in order to make sure that it can be set
all-frozen instead). You still want to give the user a clear benefit
for any added overhead. It needs a great deal of performance
validation, too.

-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Documentation about PL transforms
Next
From: Robert Haas
Date:
Subject: Re: pg15b2: large objects lost on upgrade