Re: understanding Datum -> char * -> Datum conversions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ldm(at)apartia(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: understanding Datum -> char * -> Datum conversions
Date: 2000-05-25 14:55:05
Message-ID: 22682.959266505@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Louis-David Mitterrand <cunctator(at)apartia(dot)ch> writes:
>> Casting doesn't do it. Use text_out() to produce a null-terminated C
>> string from a text Datum, and use text_in() to create a new text Datum
>> after you've modified the string.

> I can't find these functions anywhere in the included .h files. Where
> should I look?

Mea culpa, they're spelled "textout" and "textin". See
utils/builtins.h.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-05-25 15:11:43 Re: pfree() after palloc() in trigger (was: Re: understanding Datum -> char * -> Datum conversions)
Previous Message Tom Lane 2000-05-25 14:50:55 Re: AW: AW: More Performance