Re: static assert cleanup - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: static assert cleanup
Date
Msg-id 7d41d99f-25ac-7673-9b4b-7601db7c1ddb@enterprisedb.com
Whole thread Raw
In response to Re: static assert cleanup  (Peter Smith <smithpb2250@gmail.com>)
List pgsql-hackers
On 11.12.22 23:18, Peter Smith wrote:
> +StaticAssertDecl(SysCacheSize == (int) lengthof(cacheinfo),
> + "SysCacheSize does not match syscache.c's array");
> +
>   static CatCache *SysCache[SysCacheSize];
> 
> In almost every example I found of StaticAssertXXX, the lengthof(arr)
> part came first in the condition. Since you are modifying this anyway,
> should this one also be reversed for consistency?

Makes sense.  I have pushed this separately.



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Refactor SCRAM code to dynamically handle hash type and key length
Next
From: Robert Haas
Date:
Subject: Re: Minimal logical decoding on standbys