return varchar from C function

Поиск
Список
Период
Сортировка
От scotty@linuxtime.it
Тема return varchar from C function
Дата
Msg-id 1171821368468.scotty@linuxtime.it
обсуждение исходный текст
Ответы Re: return varchar from C function  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
Hi, 
just for fun, I wrote a little postgresql contrib,
who has a C function called myfun inside it.
The function myfun returns a value , now I return
a cstring type value, and it works fine if 
I run from psql shell:

select value from myfun(paramteres);

but I can't do an insert like:

insert (charfield) select value from myfun(paramteres); 

becuse I have an error, exactly casting error.

I want that myfun returns a char,varchar, or text type.

Where I can find more documentation about differences between
cstring,char,text etc...? 

Regards,
Enrico
 


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

Предыдущее
От: "Guillaume Smet"
Дата:
Сообщение: Re: [PATCHES] WIP patch - INSERT-able log statements
Следующее
От: Gregory Stark
Дата:
Сообщение: Short varlena header bit-packing options