Re: c extension

From: Kjetil Haaland <kjetil(dot)haaland(at)student(dot)uib(dot)no>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Joe Conway <mail(at)joeconway(dot)com>, pgsql-novice(at)postgresql(dot)org
Subject: Re: c extension
Date: 2004-11-04 11:57:07
Message-ID: 200411041257.07505.kjetil.haaland@student.uib.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Wednesday 03 November 2004 20:53, Tom Lane wrote:
> Joe Conway <mail(at)joeconway(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message John-Paul Delaney 2004-11-04 12:30:20 Re: pg_ [dump & restore] invalid archive problem
Previous Message Crombleholme, Roy 2004-11-04 10:55:21 Re: pg_ [dump & restore] invalid archive problem