Adriaan Joubert <a(dot)joubert(at)albourne(dot)com> writes:
> In response to comments made here, I have been rewriting the unsigned
> types as externally loadable. Using the same routines that worked fine
> when linked statically into the backend gives me core-dumps only.
Seems unlikely that that code could have worked either way, since you
forgot to mark type uint2 as PASSEDBYVALUE...
regards, tom lane