Re: Avoid mix char with bool type in comparisons

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Avoid mix char with bool type in comparisons
Дата
Msg-id 3177826.1665157202@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Avoid mix char with bool type in comparisons  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Avoid mix char with bool type in comparisons  (Robert Haas <robertmhaas@gmail.com>)
Re: Avoid mix char with bool type in comparisons  (Ranier Vilela <ranier.vf@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Oct 6, 2022 at 8:35 PM Ranier Vilela <ranier.vf@gmail.com> wrote:
>> No Tom, unfortunately I don't have the knowledge to create a test with GIN_MAYBE values.

> Well then don't post.

> Basically what you're saying is that you suspect there might be a
> problem with this code but you don't really know that and you can't
> test it. That's not a good enough reason to take up the time of
> everyone on this list.

FWIW, I did take a look at this code, and I don't see any bug.
The entryRes[] array entries are indeed GinTernaryValue, but it's
obvious by inspection that matchPartialInPendingList only returns
true or false, therefore collectMatchesForHeapRow also only deals
in true or false, never maybe.  I do not think changing
matchPartialInPendingList to return ternary would be an improvement,
because then it'd be less obvious that it doesn't deal in maybe.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: create subscription - improved warning message
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Avoid mix char with bool type in comparisons