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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: understanding Datum -> char * -> Datum conversions
Дата
Msg-id 22682.959266505@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: understanding Datum -> char * -> Datum conversions  (Louis-David Mitterrand <cunctator@apartia.ch>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: AW: AW: More Performance
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pfree() after palloc() in trigger (was: Re: understanding Datum -> char * -> Datum conversions)