equal operator for _int4 (array of int4) - Mailing list pgsql-hackers

From Oleg Bartunov
Subject equal operator for _int4 (array of int4)
Date
Msg-id Pine.GSO.3.96.SK.1001221190525.19999l-100000@ra
Whole thread Raw
Responses Re: equal operator for _int4 (array of int4)  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Larry Rosenman
Date:
Subject: Re: CIDR output format
Next
From: Tom Lane
Date:
Subject: Re: equal operator for _int4 (array of int4)