Re: c extension - Mailing list pgsql-novice

From Kjetil Haaland
Subject Re: c extension
Date
Msg-id 200411041635.11302.kjetil.haaland@student.uib.no
Whole thread Raw
In response to Re: c extension  (Joe Conway <mail@joeconway.com>)
Responses Re: c extension  (Joe Conway <mail@joeconway.com>)
List pgsql-novice
On Wednesday 03 November 2004 17:42, Joe Conway wrote:
> Probably TopMemoryContext
>
> "TopMemoryContext --- this is the actual top level of the context tree;
>   every other context is a direct or indirect child of this one.
>   Allocating here is essentially the same as "malloc", because this
>   context will never be reset or deleted."
>
> I.e. anything allocated in TopMemoryContext will live until the session
> ends.

Hi again

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?

-Kjetil

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_ [dump & restore] invalid archive problem
Next
From: "Crombleholme, Roy"
Date:
Subject: FW: pg_ [dump & restore] invalid archive problem