Re: Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff
Date
Msg-id 28554.987802472@sss.pgh.pa.us
Whole thread Raw
In response to Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff  (Brendan Guenther <guenthe8@msu.edu>)
List pgsql-interfaces
>> 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


pgsql-interfaces by date:

Previous
From: Ludek Finstrle
Date:
Subject: Re: Postgres problem
Next
From: "David Wall"
Date:
Subject: Java timestamps