| From: | Michael Fuhr <mike(at)fuhr(dot)org> |
|---|---|
| To: | vivek(at)staff(dot)ownmail(dot)com |
| Cc: | pgsql-interfaces(at)postgresql(dot)org |
| Subject: | Re: SPI_getvalue fails |
| Date: | 2006-07-31 12:52:52 |
| Message-ID: | 20060731125252.GA63949@winnie.fuhr.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-interfaces |
On Mon, Jul 31, 2006 at 12:29:25PM +0530, vivek(at)staff(dot)ownmail(dot)com wrote:
> I get a coredump if I try to use SPI_getvalue. Upon writing some
> logs, I see that postgresql gets the insert statement properly
> with all the values non null but the variable trigdata->tg_trigtuple
> is NULL. I am not able to figure out why it happens so.
The connection between trigdata->tg_trigtuple being NULL and
SPI_getvalue() causing a core dump isn't clear from what you've
written. It sounds like you're writing a C function that's called
via a trigger -- is that correct? Could you post the CREATE TRIGGER
statement and the function's code?
--
Michael Fuhr
| From | Date | Subject | |
|---|---|---|---|
| Next Message | vivek | 2006-07-31 13:01:54 | Re: SPI_getvalue fails |
| Previous Message | Tuğberk Kara | 2006-07-31 07:18:18 | connection problem |