Re: Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brendan Guenther <guenthe8(at)msu(dot)edu>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff
Date: 2001-04-20 21:34:32
Message-ID: 28554.987802472@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces pgsql-sql

>> 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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message David Wall 2001-04-21 03:11:03 Java timestamps
Previous Message Mark Stosberg 2001-04-20 18:40:41 Re: Client/Server Security question

Browse pgsql-sql by date

  From Date Subject
Next Message nusa 2001-04-20 23:54:23 HELP : Can't load JDBC driver !
Previous Message Jeff Hoffmann 2001-04-20 21:18:21 Re: creating tables that are visible across databases