> > See in PG's backend source files:
> >
> > c.h - for datetype definition and Datum macros,
> > we have Datum macros for double/float types too.
> >
> > buildin.h - for datetype conversion.
> > utils/timestamp.h ...etc.
> >
> > and directory utils/adt for inspiration "how work
> > with pg types :-)
>
> I'm reading these files but still got a problem:
float32 result = (float32) palloc(sizeof(float32data)); *result = 10.5;SPI_modifytuple(relation, tupdesc, &attnum,
Float32GetDatum(result), NULL);
Right?
Karel