Re: Avoid mix char with bool type in comparisons

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Avoid mix char with bool type in comparisons
Дата
Msg-id 3024623.1665100373@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Avoid mix char with bool type in comparisons  (Ranier Vilela <ranier.vf@gmail.com>)
Ответы Re: Avoid mix char with bool type in comparisons  (Ranier Vilela <ranier.vf@gmail.com>)
Список pgsql-hackers
Ranier Vilela <ranier.vf@gmail.com> writes:
> So, any use of this GinTernaryValue are:

> 1. if (key->entryRes[j]) be FALSE if GIN_FALSE
> 2. if (key->entryRes[j]) be TRUE if GIN_TRUE
> 3. if (key->entryRes[j]) be TRUE if GIN_MAYBE

Yeah, that's how it's designed.  Unless you can point to a bug,
I do not think we ought to change this code.

            regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Issue with pg_stat_subscription_stats
Следующее
От: Ajin Cherian
Дата:
Сообщение: Re: Support logical replication of DDLs