Received: from sss.pgh.pa.us ([216.151.103.158]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3KLYc391943 for ; Fri, 20 Apr 2001 17:34:38 -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 f3KLYXR28557; Fri, 20 Apr 2001 17:34:33 -0400 (EDT) To: Brendan Guenther cc: pgsql-interfaces@postgresql.org Subject: Re: Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff In-reply-to: <3AE01970.EC523C59@msu.edu> References: <3AE01970.EC523C59@msu.edu> Comments: In-reply-to Brendan Guenther message dated "Fri, 20 Apr 2001 07:11:44 -0400" Date: Fri, 20 Apr 2001 17:34:32 -0400 Message-ID: <28554.987802472@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200104/93 X-Sequence-Number: 1477 >> The best things might be not to mess with this but call textin() and >> textout() to convert your data to C strings. textin() and textout() are notationally painful to call these days. Personally I think it's just as easy to do your own manipulation of text objects. There are examples at http://www.postgresql.org/users-lounge/docs/7.1/postgres/xfunc-c.html --- see the copytext and concat_text() samples in particular. regards, tom lane