Re: SPI_getvalue gives a core dump - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: SPI_getvalue gives a core dump
Date
Msg-id 25008.1154102845@sss.pgh.pa.us
Whole thread Raw
In response to SPI_getvalue gives a core dump  (<vivek@staff.ownmail.com>)
List pgsql-interfaces
<vivek@staff.ownmail.com> writes:
> I dont know where am i going wrong. Here is the source.

> TriggerData *trigdata = (TriggerData *) fcinfo->context;
> TupleDesc   tupdesc;
> if (CALLED_AS_TRIGGER(fcinfo)) {  ==================== it comes here and enters inside.
>     userfield=SPI_getvalue(trigdata->tg_trigtuple,tupdesc,17); ================== it fails here because i tried to
getlogs before this statement and it succeeded. 
 

Wrong tupdesc maybe?  You didn't show us what you are setting tupdesc
to.
        regards, tom lane


pgsql-interfaces by date:

Previous
From:
Date:
Subject: SPI_getvalue gives a core dump
Next
From:
Date:
Subject: Re: SPI_getvalue gives a core dump