Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group