Re: Segfault using heap_form_tuple

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

> 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

Mate, you just won a beer :)

You guessed it right, I was trying to "CStringGetDatum" into a text field, now i solved it with

values[n] = DirectFunctionCall1(textin, CStringGetDatum(...string...));

Thank you very much!

Claudio Rossi

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2008-04-09 19:08:27 Re: Free Space Map data structure
Previous Message Claudio Rossi 2008-04-09 18:43:47 Re: Segfault using heap_form_tuple