Re: heap_form_tuple crashing - Mailing list pgsql-hackers

From Atri Sharma
Subject Re: heap_form_tuple crashing
Date
Msg-id CAOeZVicN-88XpvX63rYFMmF786k7Bv=ccvPHKXOMKDrRMg07HQ@mail.gmail.com
Whole thread Raw
In response to Re: heap_form_tuple crashing  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
On Thu, May 31, 2012 at 5:14 PM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
> On 31.05.2012 14:42, Atri Sharma wrote:
>>
>> Another thing I wanted to ask was that would you recommend building
>> tuples from strings directly or converting them to Datum first and
>> then build the tuples from Datum instances?
>
>
> It depends. If you have all the values in strings already, then
> BuildTupleFromCStrings() is probably the easiest. But if you have some
> attributes in Datum format already, then it's probably easier and faster to
> use heap_form_tuple().
>
>
> --
>  Heikki Linnakangas
>  EnterpriseDB   http://www.enterprisedb.com

Performance wise,which one would be better(I am envisioning a large
set of strings to be converted to tuples)....?


--
Regards,

Atri
l'apprenant


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: heap_form_tuple crashing
Next
From: Simon Riggs
Date:
Subject: Re: FailedAssertion("!(PrivateRefCount[i] == 0)", File: "bufmgr.c", Line: 1741