equal operator for _int4 (array of int4)

Поиск
Список
Период
Сортировка
От Oleg Bartunov
Тема equal operator for _int4 (array of int4)
Дата
Msg-id Pine.GSO.3.96.SK.1001221190525.19999l-100000@ra
обсуждение исходный текст
Ответы Re: equal operator for _int4 (array of int4)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom,

while porting our patches for GiST from 7.0.3 to 7.1 we
got a problem with equal operator for _int4 - 
src/backend/access/gist.c:540
       /* did union leave decompressed version of oldud unchanged? */       FunctionCall3(&giststate->equalFn,
                      PointerGetDatum(ev0p->pred),                                 PointerGetDatum(datum),
                  PointerGetDatum(&result));
 

this call produces core when one of the PointerGetDatum(ev0p->pred)
or PointerGetDatum(datum) is NULL

We use internal postgres function for array comparison -&giststate->equalFn is references to array_eq

There is no problem in 7.0.3

Do you have any idea what could be a reason for such behaivour ?
(bug or feature :-)
 regards,
    Oleg



_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83



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

Предыдущее
От: Larry Rosenman
Дата:
Сообщение: Re: CIDR output format
Следующее
От: Tom Lane
Дата:
Сообщение: Re: equal operator for _int4 (array of int4)