Re: understanding Datum -> char * -> Datum conversions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: understanding Datum -> char * -> Datum conversions
Date
Msg-id 22682.959266505@sss.pgh.pa.us
Whole thread Raw
In response to Re: understanding Datum -> char * -> Datum conversions  (Louis-David Mitterrand <cunctator@apartia.ch>)
List pgsql-hackers
Louis-David Mitterrand <cunctator@apartia.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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: AW: AW: More Performance
Next
From: Tom Lane
Date:
Subject: Re: pfree() after palloc() in trigger (was: Re: understanding Datum -> char * -> Datum conversions)