[EMAIL PROTECTED] (D'Arcy J.M. Cain) writes:
> Do I have to manually create a varlena?  I'll try that next.

The best way to get from a C string to a valid datum is to invoke the
datatype's input conversion routine.  If you know you want text,
you could do

#define _textin(str) DirectFunctionCall1(textin, CStringGetDatum(str))

to produce a datum from a C string.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply via email to