Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4TE5JE05807 for ; Tue, 29 May 2001 10:05:19 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.3/8.11.3) with ESMTP id f4TE4GR18398; Tue, 29 May 2001 10:04:16 -0400 (EDT) To: Jaume Teixi cc: psql-admin Subject: Re: postgresql 7.1.1 and textout and textin In-reply-to: <20010529114345.3daad57e.teixi@6tems.com> References: <20010529114345.3daad57e.teixi@6tems.com> Comments: In-reply-to Jaume Teixi message dated "Tue, 29 May 2001 11:43:45 +0200" Date: Tue, 29 May 2001 10:04:16 -0400 Message-ID: <18395.991145056@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200105/162 X-Sequence-Number: 1524 Jaume Teixi writes: > trying to migrate production servers form 7.0.2 to 7.1.1 now I need to > compile an function written in c and when compiling using following > includes: > c:82: warning: passing arg 1 of `textout' from incompatible pointer type > line 82: src = textout( src_string ); textout (and all the other built-in SQL functions) now have to be called via the "new style" calling convention. Which unfortunately is a pain in the neck to code in bare C. A number of modules do something like this: #define _textout(str) DatumGetPointer(DirectFunctionCall1(textout, PointerGetDatum(str))) The price of progress :-(. See the documentation for more info. regards, tom lane