Re: memory allocation in postgres - Mailing list pgsql-novice

From Tom Lane
Subject Re: memory allocation in postgres
Date
Msg-id 15822.1101139433@sss.pgh.pa.us
Whole thread Raw
In response to memory allocation in postgres  (Kjetil Haaland <kjetil.haaland@student.uib.no>)
List pgsql-novice
Kjetil Haaland <kjetil.haaland@student.uib.no> writes:
> ... In one of the functions, the stuff
> that is inserted is supposed to last until the user logs out, so i have
> changed the memorycontext  to TopMemoryContext like this:

OK...

> The problem is, when i allocate memory in some of the other functions it is
> null the first time i call it, and thats correct, but the next time i call
> the same function, what was inserted in the last round is still there.

Isn't that what you just said you wanted?

            regards, tom lane

pgsql-novice by date:

Previous
From: Kjetil Haaland
Date:
Subject: memory allocation in postgres
Next
From: George Weaver
Date:
Subject: xml2 compile error - work_mem undeclared