Re: pgsql: Protect GIST logic that assumes penalty values can't be negative

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: pgsql: Protect GIST logic that assumes penalty values can't be negative
Дата
Msg-id BANLkTi=d+bPpS1cM4YC8KuKHj63Hwj4LMA@mail.gmail.com
обсуждение исходный текст
Ответы Re: pgsql: Protect GIST logic that assumes penalty values can't be negative
Список pgsql-hackers
On Tue, May 31, 2011 at 2:54 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>  Prevent problems by clamping negative penalty values to
> zero.  (Just to be really sure, I also made it force NaNs to zero.)

Do gistchoose et al expect the triangle function to obey the triangle
inequality? If so isn't it possible treating NaNs as zero would fail
that? I'm not sure there's any safe assumption for NaN

--
greg


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: creating CHECK constraints as NOT VALID
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Protect GIST logic that assumes penalty values can't be negative