Re: heap_form_tuple crashing - Mailing list pgsql-hackers

From Tom Lane
Subject Re: heap_form_tuple crashing
Date
Msg-id 8372.1338471078@sss.pgh.pa.us
Whole thread Raw
In response to heap_form_tuple crashing  (Atri Sharma <atri.jiit@gmail.com>)
Responses Re: heap_form_tuple crashing  (Atri Sharma <atri.jiit@gmail.com>)
List pgsql-hackers
Atri Sharma <atri.jiit@gmail.com> writes:
> My call to heap_form_tuple looks like:
> val1=0;
> tupledesc1=BlessTupleDesc(node->ss.ss_currentRelation->rd_att);
> tuple=heap_form_tuple(tupledesc1,p1,&val1);

> p1 is a pointer to a Datum instance which is created from a char array.

Does that actually match the tupdesc you're using?  Are you sure you
created the Datum correctly (ie, did you call the appropriate datatype
input routine)?

BTW, the BlessTupleDesc call here seems to be pure cargo-cult
programming.  It should not be necessary to bless a relation's tupdesc
(because that should be a named type already); and even if it were,
heap_form_tuple doesn't care.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Uh, I change my mind about commit_delay + commit_siblings (sort of)
Next
From: Robert Klemme
Date:
Subject: Re: [PERFORM] pg_dump and thousands of schemas