Re: type cache cleanup improvements - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Re: type cache cleanup improvements
Date
Msg-id 793b9121-3a42-4581-8164-6cd871eb7713@sigaev.ru
Whole thread Raw
In response to Re: type cache cleanup improvements  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: type cache cleanup improvements
List pgsql-hackers
Yep, exacly. One time from 2^32 we reset whole cache instead of one (or several) 
entry with hash value = 0.

On 08.03.2024 18:35, Tom Lane wrote:
> Aleksander Alekseev <aleksander@timescale.com> writes:
>> One thing that I couldn't immediately figure out is why 0 hash value
>> is treated as a magic invalid value in TypeCacheTypCallback():
> 
> I've not read this patch, but IIRC in some places we have a convention
> that hash value zero is passed for an sinval reset event (that is,
> "flush all cache entries").
> 
>             regards, tom lane
> 
> 

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: btree: downlink right separator/HIKEY optimization
Next
From: Thomas Munro
Date:
Subject: Re: Failures in constraints regression test, "read only 0 of 8192 bytes"