Re: Wrong results from in_range() tests with infinite offset

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Wrong results from in_range() tests with infinite offset
Дата
Msg-id 794665.1595297192@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Wrong results from in_range() tests with infinite offset  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Wrong results from in_range() tests with infinite offset  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Список pgsql-hackers
I wrote:
> The other three cases where we'd hit NaNs are likewise symmetric with
> non-NaN cases that'd return TRUE.  Hence, I'm forced to the conclusion
> that you've got it right above.  I might write the code a little
> differently, but const-TRUE-for-NaN-cases seems like the right behavior.
> So I withdraw my objection to defining it this way.  Unless somebody
> else weighs in, I'll commit it like that in a day or two.

Pushed, but I chickened out of back-patching.  The improvement in what
happens for finite comparison values seems somewhat counterbalanced by
the possibility that someone might not like the definition we arrived
at for infinities.  So, it's not quite an open-and-shut bug fix, so
I just put it in HEAD (for now anyway).

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: NaN divided by zero should yield NaN
Следующее
От: "k.jamison@fujitsu.com"
Дата:
Сообщение: RE: Parallel Seq Scan vs kernel read ahead