Re: Safer hash table initialization macro

Поиск
Список
Период
Сортировка
От Jelte Fennema-Nio
Тема Re: Safer hash table initialization macro
Дата
Msg-id CAGECzQTTQGr9cnqGzEUt3FdROc8PwxXjqBD=ere5YiA2A+PvNw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Safer hash table initialization macro  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-hackers
On Tue, 9 Dec 2025 at 10:11, Thomas Munro <thomas.munro@gmail.com> wrote:
> > What about relying on the existing __builtin_types_compatible_p() instead of
> > _Generic() here?
>
> If we used standard C/C++ it'd work on MSVC too.

And to be clear, that's important because the result of
pg_expr_has_type_p fundamentally impacts the meaning of the code (i.e.
it determines the hash function). Our existing usage of
__builtin_types_compatible_p only adds some *optional* type checking,
so for that it's not critical that it works on MSVC too.



В списке pgsql-hackers по дате отправления: