Re: Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff
Дата
Msg-id 28554.987802472@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff  (Brendan Guenther <guenthe8@msu.edu>)
Список pgsql-interfaces
>> 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


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Ludek Finstrle
Дата:
Сообщение: Re: Postgres problem
Следующее
От: "David Wall"
Дата:
Сообщение: Java timestamps