pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brendan Guenther <guenthe8@msu.edu>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff
Date: Fri, 20 Apr 2001 17:34:32 -0400
Message-ID: <28554.987802472@sss.pgh.pa.us> (raw)
In-Reply-To: <3AE01970.EC523C59@msu.edu>
References: <Pine.LNX.4.30.0104161558510.760-100000@peter.localdomain>
	<3AE01970.EC523C59@msu.edu>

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



view thread (5+ messages)

Message-ID: <28554.987802472@sss.pgh.pa.us>
Permalink:  ../28554.987802472@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28554.987802472@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, guenthe8@msu.edu
  Subject: Re: Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff
  In-Reply-To: <28554.987802472@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox