"Atul" <atulk@newgen.co.in> writes:
> text* myfunc()
> {
> text* ch;
> *ch = '1,2';
> return ch;
> }
You can't create a text object that way. Read some of the text-mashing
functions in the existing backend code for examples of creating a text
value correctly. (And pay more attention to the complaints that your
C compiler undoubtedly gave you...)
regards, tom lane