Re: pgsql: Improve handling of NULLs in KNN-GiST and KNN-SP-GiST

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Improve handling of NULLs in KNN-GiST and KNN-SP-GiST
Дата
Msg-id 2608.1568924017@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Improve handling of NULLs in KNN-GiST and KNN-SP-GiST  (Erik Rijkers <er@xs4all.nl>)
Ответы Re: pgsql: Improve handling of NULLs in KNN-GiST and KNN-SP-GiST
Список pgsql-committers
Erik Rijkers <er@xs4all.nl> writes:
> Oops:
>       create_index                 ... ok          634 ms
>       create_index_spgist          ... FAILED      438 ms
>       create_view                  ... ok          329 ms

I'm betting the issue is breaking the Datum abstraction here:

-                   scan->xs_orderbyvals[i] = Float8GetDatum(distanceValues[i]);
+                   scan->xs_orderbyvals[i] = item->distances[i].value;

AFAICS, item->distances[i].value is a double not a Datum, so dropping
the Float8GetDatum call is just wrong.

            regards, tom lane



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

Предыдущее
От: Erik Rijkers
Дата:
Сообщение: Re: pgsql: Improve handling of NULLs in KNN-GiST and KNN-SP-GiST
Следующее
От: Alexander Korotkov
Дата:
Сообщение: Re: pgsql: Improve handling of NULLs in KNN-GiST and KNN-SP-GiST