Re: Problem with heap_form_tuple error - Mailing list pgsql-general

From Tom Lane
Subject Re: Problem with heap_form_tuple error
Date
Msg-id 23808.1352146725@sss.pgh.pa.us
Whole thread Raw
In response to Re: Problem with heap_form_tuple error  (Stephen Woodbridge <woodbri@swoodbridge.com>)
List pgsql-general
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


pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: deadlock detected
Next
From: Tom Lane
Date:
Subject: Re: deadlock detected