Thread: Convert raw fields into Datum

Convert raw fields into Datum

From
sri harsha
Date:
Hi,

  I have the raw fields of a particular row in char * . Now my requirement is to convert these value into datum * . How should i go about this ? Does converting into datum depends on the type of the field too ? 

-- Harsha

Re: Convert raw fields into Datum

From
Tom Lane
Date:
sri harsha <sriharsha9992@gmail.com> writes:
>   I have the raw fields of a particular row in char * . Now my requirement
> is to convert these value into datum * . How should i go about this ? Does
> converting into datum depends on the type of the field too ?

Yes.  You are probably looking for BuildTupleFromCStrings().

            regards, tom lane