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
Дата
Msg-id CAPpHfdu2wcoAVAm3Ek66rP=uo_C-D84++uf1VEcbyi_caBXWCA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Improve handling of NULLs in KNN-GiST and KNN-SP-GiST  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
Ответы Re: pgsql: Improve handling of NULLs in KNN-GiST and KNN-SP-GiST
Список pgsql-committers
On Thu, Sep 19, 2019 at 11:43 PM Alexander Korotkov
<a.korotkov@postgrespro.ru> wrote:
> On Thu, Sep 19, 2019 at 11:31 PM Alexander Korotkov
> <a.korotkov@postgrespro.ru> wrote:
> >
> > On Thu, Sep 19, 2019 at 11:13 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >>
> >> 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;
> >
> >
> > Overseen by me.  Will fix immediately.
>
>
> Fix pushed from 11 to 9.5, where I made this error during backpatching.
>
> However, I also see set of failures in master, which seems related to
> this patch:
>  * https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=dromedary&dt=2019-09-19%2020%3A09%3A42
>  * https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=crake&dt=2019-09-19%2020%3A04%3A22
>  * https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=tern&dt=2019-09-19%2019%3A22%3A01
>
> Will investigate them.

Both dromedary and tern, where segfault happened, are 32-bit.  Bug
seems related to USE_FLOAT8_BYVAL or something.

------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company



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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: 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