"Sam Stephens" <tangent@inspire.net.nz> writes:
> PG_FUNCTION_INFO_V1(f_qpsolve);
> text * f_qpsolve(text *arg)
> {
This function is not written according to the V1 calling convention.
Either rewrite it or remove the INFO_V1 macro.
> return 0;
You most certainly do not want to return a null "text *" pointer.
regards, tom lane