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: [EMAIL PROTECTED], http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

Reply via email to