Re: Problem with heap_form_tuple error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephen Woodbridge <woodbri(at)swoodbridge(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Problem with heap_form_tuple error
Date: 2012-11-05 20:18:45
Message-ID: 23808.1352146725@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephen Woodbridge <woodbri(at)swoodbridge(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2012-11-05 20:38:12 Re: deadlock detected
Previous Message Marti Raudsepp 2012-11-05 19:31:34 Re: [GENERAL] Error registering at postgresql.org