I could be on board for some small careful casting changes.
Show quoted text> I think, that all integer (smallint, integer, bigint, smallserial,
> serial, bigserial) should translated into simple IV/UV in Perl. This
> only int2, int4 and int8 types. Seems, that many platforms which run
> perl supports this types.
These already all map to IV, which can easily hold them all (no need to pull in UV).
Show quoted text> Types 'real' and 'double precision' this is float and double. Also
> supported by many systems. NV type for scalars.
Yes, I think we can put all the smaller bounded ones in like this, from some quick testing:
sv_setnv(sv, strod(value, NULL));
Show quoted text> Types decimal and numeric has variable sizes, so I think they need use
> a string (PV) type in Perl.
Yes.
Would be nice to do a complete audit of all the types while we are breaking things, so I'd love to have other people weigh in. Right now, the only types we consider "special" are arrays, int2/4/8, and booleans.