Luca Ferrari <fluca1978@xxxxxxxxx> writes: > Fixing the type creation into: > CREATE TYPE hfsize ( > internallength = 16, > input = hfsize_input_function, > output = hfsize_output_function > ); > solved the problem, so it was a length mismatch. You really need to specify double alignment too; IIRC the default assumption is only "int" alignment. Intel processors will usually let you get away with being sloppy about that, but it's still wrong (and there *are* cases where Intel will complain too). regards, tom lane