Re: type cache cleanup improvements
От | Teodor Sigaev |
---|---|
Тема | Re: type cache cleanup improvements |
Дата | |
Msg-id | 793b9121-3a42-4581-8164-6cd871eb7713@sigaev.ru обсуждение исходный текст |
Ответ на | Re: type cache cleanup improvements (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: type cache cleanup improvements
|
Список | 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 по дате отправления: