"Marc Munro" <marc@bloodnok.com> writes:
> The following script causes a db server crash:
You are using the I/O routines for the builtin "char" type, but you
have not duplicated the storage parameters for that type. The length
must be 1 not -1, and it's pass by value.
regards, tom lane