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