Kjetil Haaland <kjetil(dot)haaland(at)student(dot)uib(dot)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