Re: static assert cleanup

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: static assert cleanup
Дата
Msg-id 7d41d99f-25ac-7673-9b4b-7601db7c1ddb@enterprisedb.com
обсуждение исходный текст
Ответ на Re: static assert cleanup  (Peter Smith <smithpb2250@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Refactor SCRAM code to dynamically handle hash type and key length
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Minimal logical decoding on standbys