Marios Vodas <mvodas(at)gmail(dot)com> writes:
> //I need to get this working
> *values[0] = e;*
> * values[1] = i;*
Maybe you're missing HeapTupleGetDatum() there? Just from a data type
cleanliness standpoint, you shouldn't ever assign something to Datum or
vice versa without applying the correct conversion macro.
regards, tom lane