>> 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
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера