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

From Tom Lane
Subject Re: type cache cleanup improvements
Date
Msg-id 794839.1709912139@sss.pgh.pa.us
Whole thread Raw
In response to Re: type cache cleanup improvements  (Aleksander Alekseev <aleksander@timescale.com>)
Responses Re: type cache cleanup improvements
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Aleksander Alekseev
Date:
Subject: Re: type cache cleanup improvements
Next
From: Tomas Vondra
Date:
Subject: Re: Identify transactions causing highest wal generation