X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E4AA85E46EF for ; Mon, 16 Aug 2004 11:34:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 11052-05 for ; Mon, 16 Aug 2004 14:34:25 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id C310A5E46F2 for ; Mon, 16 Aug 2004 11:34:23 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i7GEYPoI013241; Mon, 16 Aug 2004 10:34:26 -0400 (EDT) To: "Sam Stephens" Cc: pgsql-interfaces@postgresql.org Subject: Re: C text to string issue In-reply-to: <41213388.2171.2E01748@localhost> References: <41213388.2171.2E01748@localhost> Comments: In-reply-to "Sam Stephens" message dated "Mon, 16 Aug 2004 22:22:00 +1200" Date: Mon, 16 Aug 2004 10:34:25 -0400 Message-ID: <13240.1092666865@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/23 X-Sequence-Number: 5071 "Sam Stephens" 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