Re: replace magic num in struct cachedesc with CATCACHE_MAXKEYS - Mailing list pgsql-hackers

From Junwang Zhao
Subject Re: replace magic num in struct cachedesc with CATCACHE_MAXKEYS
Date
Msg-id CAEG8a3+Ee5=gsXtJ9CpN96o7NNSCcqChMGnU1asHDyVn=BGbHA@mail.gmail.com
Whole thread Raw
In response to Re: replace magic num in struct cachedesc with CATCACHE_MAXKEYS  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers
On Fri, Aug 23, 2024 at 9:02 PM Peter Eisentraut <peter@eisentraut.org> wrote:
>
> On 15.08.24 12:25, Junwang Zhao wrote:
> > I noticed that there is a magic number which can be replaced by CATCACHE_MAXKEYS
> > in struct cachedesc, I checked some other struct like CatCache, CatCTup, they
> > all use CATCACHE_MAXKEYS.
>
> The "syscache" is the only user of the "catcache" right now.  But I
> think they are formally separate.  So I don't think the "4" in the
> syscache is necessarily the same as CATCACHE_MAXKEYS.  For example,
> increasing CATCACHE_MAXKEYS, hypothetically, wouldn't by itself make the
> syscache support more than 4 keys.

Thanks for your explanation.

CF status changed to withdrawn.


--
Regards
Junwang Zhao



pgsql-hackers by date:

Previous
From: "Joel Jacobson"
Date:
Subject: Re: Optimising numeric division
Next
From: shawn wang
Date:
Subject: Re: Trim the heap free memory