> Is there any difference from function returning text and function
> returning cstring?
>
text is varlena type - it could be TOASTed, comprimated. It is better
integrated to PostgreSQL world. cstring is just C zero terminated
string - so good for system call, call some external libraries.
Regards
Pavel Stehule