Re: Segfault using heap_form_tuple - Mailing list pgsql-hackers

From Claudio Rossi
Subject Re: Segfault using heap_form_tuple
Date
Msg-id JZ2NA2$78C2892A4CFD9B32B08C747DC6B64147@libero.it
Whole thread Raw
In response to Segfault using heap_form_tuple  ("Claudio Rossi" <wind.claudio@inwind.it>)
Responses Re: Segfault using heap_form_tuple  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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



pgsql-hackers by date:

Previous
From: "Claudio Rossi"
Date:
Subject: Re: Segfault using heap_form_tuple
Next
From: Heikki Linnakangas
Date:
Subject: Re: Free Space Map data structure