Stephen Woodbridge <woodbri@swoodbridge.com> writes:
> Thanks, changing my code to use BuildTupleFromCStrings did the trick. So
> if I wanted to do some like my code was doing what is the proper way to
> convert a CString into varchar and then that into Datum?
Personally I'd use cstring_to_text (relying on the knowledge that text
and varchar are binary-equivalent types).
regards, tom lane