Mark Gibson <gibsonm@cromwell.co.uk> writes:
> Unfortunately, it doesn't work using the oid the map, whether custom types
> are involved or not. All I get is the following message:
> ERROR: unsupported byval length: nnnn
> SPI is very new to me (like 2 days old ;).
> Any suggestions where I've gone wrong?
Not offhand. Try setting a breakpoint at errfinish() so you can get a
stack trace back from the point of the error; that should help.
regards, tom lane