Re: custom C function problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dan \"Heron\" Myers" <heron(at)xnapid(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: custom C function problem
Date: 2008-05-03 19:46:46
Message-ID: 19934.1209844006@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Dan \"Heron\" Myers" <heron(at)xnapid(dot)com> writes:
> One case that fails is essentially copied from the V1 section in the
> documentation:

Well, there's nothing wrong with that C code, so the problem is
someplace else.

Did you remember to declare the function STRICT? If not, and if
there are any nulls in your test table, a crash would be expected;
there's nothing in this function that's guarding against a null
pointer dereference.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-05-03 19:49:58 Re: Feature request
Previous Message Oscar Uribe 2008-05-03 19:35:41 Sequences