Re: SPI_getvalue problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: gav <gav(at)nlr(dot)ru>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SPI_getvalue problem
Date: 2001-01-28 17:24:51
Message-ID: 916.980702691@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alex Guryanow <gav(at)nlr(dot)ru> writes:
> I have the following problem: the backend crashes on Solaris while
> executing the function SPI_getvalue.
> At the same time on Linux this trigger works fine.
> Is this a bug or my misconfuguration?

Sounds like a bug to me, but you haven't demonstrated that the bug is in
SPI_getvalue and not in your own code. The first thing I'd wonder about
is if your trigger function is checking for NULL value before calling
SPI_getvalue (or at least before trying to do anything useful with the
result).

The platform dependency of the failure might just be due to a
configuration difference, for example whether the program is set up
to force SIGSEGV on a null-pointer dereference or not.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mitch Vincent 2001-01-28 18:45:54 Re: varchar => int
Previous Message Adam Lang 2001-01-28 17:17:15 Re: LinuxWorld NYC