From: Michael Fuhr <mike@fuhr.org>
To: vivek@staff.ownmail.com
Cc: pgsql-interfaces@postgresql.org
Subject: Re: SPI_getvalue fails
Date: Mon, 31 Jul 2006 06:52:52 -0600
Message-ID: <20060731125252.GA63949@winnie.fuhr.org> (raw)
In-Reply-To: <200607310659.k6V6xP8N027369@mail009.ownmail.com>
References: <200607310659.k6V6xP8N027369@mail009.ownmail.com>
On Mon, Jul 31, 2006 at 12:29:25PM +0530, vivek@staff.ownmail.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
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: mike@fuhr.org, vivek@staff.ownmail.com
Subject: Re: SPI_getvalue fails
In-Reply-To: <20060731125252.GA63949@winnie.fuhr.org>
* 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