Re: When Update balloons memory - Mailing list pgsql-bugs

From Peter Geoghegan
Subject Re: When Update balloons memory
Date
Msg-id CAH2-WzmhSUF6wLG5C3x__CPdX=9ec_Ou6Vkbpj7wZBJn2gsxMw@mail.gmail.com
Whole thread Raw
In response to Re: When Update balloons memory  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Tue, Dec 14, 2021 at 3:28 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Uh ... it seems that you are writing as though "giving the hint"
> means saying that the column value changed.  That seems quite
> confusingly backwards to me, as that is/ought to be the expected
> assumption.

That's not what I meant. When I say "give the hint", I mean pass
"indexUnchanged = true" to aminsert(). This is interpreted within
btinsert() as "the incoming index tuple is a duplicate of at least one
index, so perform a bottom-up index deletion pass if and when the
alternative is splitting the leaf page". In practice the hint always
has to be treated as a noisy signal about what might work, as a
strategy of last resort, with costs that are imposed on non-HOT
updaters.

-- 
Peter Geoghegan



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: When Update balloons memory
Next
From: Michael Paquier
Date:
Subject: Re: BUG #17326: Postgres crashed when pg_reload_conf() with ssl certificate parameters