Re: custom C function problem - Mailing list pgsql-general

From Tom Lane
Subject Re: custom C function problem
Date
Msg-id 19934.1209844006@sss.pgh.pa.us
Whole thread Raw
In response to Re: custom C function problem  ("Dan \"Heron\" Myers" <heron@xnapid.com>)
Responses Re: custom C function problem  ("Dan \"Heron\" Myers" <heron@xnapid.com>)
List pgsql-general
"Dan \"Heron\" Myers" <heron@xnapid.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

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: clustering without locking
Next
From: Tom Lane
Date:
Subject: Re: Feature request