Re: c extension - Mailing list pgsql-novice

From Kjetil Haaland
Subject Re: c extension
Date
Msg-id 200411041257.07505.kjetil.haaland@student.uib.no
Whole thread Raw
In response to Re: c extension  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
On Wednesday 03 November 2004 20:53, Tom Lane wrote:
> Joe Conway <mail@joeconway.com> writes:
> > Kjetil Haaland wrote:
> >> Is there any good reason it should work with integers and not with
> >> characters?
> >
> > Not sure -- sheer luck ;-)
>
> Maybe it's a memory clobber, like writing one more array position than
> you actually allocated?  Check your address and sizing arithmetic.
>
>             regards, tom lane

Have checked it, and it is correct. I don't go pass what i have actually
allocated. I have looked at your slides but i don't understand how I change
the memorycontext. I now about the MemoryContextSwitchTo method but what i
don't understand is how to define the correct memorycontext, let's say
TopMemoryContext. Does anyone now how i do this?

-Kjetil

pgsql-novice by date:

Previous
From: "Crombleholme, Roy"
Date:
Subject: Re: pg_ [dump & restore] invalid archive problem
Next
From: "John-Paul Delaney"
Date:
Subject: Re: pg_ [dump & restore] invalid archive problem