Re: c extension - Mailing list pgsql-novice

From Joe Conway
Subject Re: c extension
Date
Msg-id 418BFC79.1050304@joeconway.com
Whole thread Raw
In response to Re: c extension  (Kjetil Haaland <kjetil.haaland@student.uib.no>)
List pgsql-novice
Kjetil Haaland wrote:
> I have no managed to set the memorycontext to TopMemoryContext but it still
> doesn't work. The table with the integers is still working fine, but the
> table with the characters are no good and it crashes when i try to read it.
> In the log it says that there is a record with zero length.
>
> Does anyone have any suggestion of what could be wrong?

Are you handling NULLs correctly?

Hard to say -- if you really want help you'll need to post your C function.

Joe

pgsql-novice by date:

Previous
From: Joe Conway
Date:
Subject: Re: building a row with a plpgsql function
Next
From: graeme
Date:
Subject: Re: Question on locking