"And. Andruikhanov" <andy(at)euinf(dot)dp(dot)ua> writes:
> create type unsl4(input=unsl4_in, output=unsl4_out, internallength=4,
> externallength=variable);
This will not work at all, since you did not specify PASSEDBYVALUE
but your functions assume the type is pass-by-value.  An explicit
ALIGNMENT=int4 might be a good idea too, although I think that's the
default.
			regards, tom lane