Re: SPI_getvalue gives a core dump

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: vivek(at)staff(dot)ownmail(dot)com
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: SPI_getvalue gives a core dump
Date: 2006-07-28 16:07:25
Message-ID: 25008.1154102845@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

<vivek(at)staff(dot)ownmail(dot)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 get logs before this statement and it succeeded.

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

regards, tom lane

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message vivek 2006-07-28 16:27:58 Re: SPI_getvalue gives a core dump
Previous Message vivek 2006-07-28 15:35:05 SPI_getvalue gives a core dump