From: Tom Lane <tgl@sss.pgh.pa.us>
To: vivek@staff.ownmail.com
Cc: pgsql-interfaces@postgresql.org
Subject: Re: SPI_getvalue gives a core dump
Date: Fri, 28 Jul 2006 12:07:25 -0400
Message-ID: <25008.1154102845@sss.pgh.pa.us> (raw)
In-Reply-To: <200607281535.k6SFZ5EV014757@mail009.ownmail.com>
References: <200607281535.k6SFZ5EV014757@mail009.ownmail.com>
<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 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, vivek@staff.ownmail.com
Subject: Re: SPI_getvalue gives a core dump
In-Reply-To: <25008.1154102845@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox