Re: Segfault using heap_form_tuple

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Claudio Rossi" <wind(dot)claudio(at)inwind(dot)it>
Cc: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Segfault using heap_form_tuple
Date: 2008-04-09 18:12:09
Message-ID: 24250.1207764729@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Claudio Rossi" <wind(dot)claudio(at)inwind(dot)it> writes:
> values[0] = ...GetDatum(...my datum...);
> ...
> values[natts-1] = ...GetDatum(...my datum...);

You've omitted the details that probably matter. My guess is that
you're inappropriately converting one of these values to a Datum,
or converting it to a Datum that's not really of the type the
tuple descriptor specifies.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2008-04-09 18:19:13 Re: Commit fest queue
Previous Message Heikki Linnakangas 2008-04-09 18:09:34 Re: Free Space Map data structure