Re: memory allocation in postgres

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kjetil Haaland <kjetil(dot)haaland(at)student(dot)uib(dot)no>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: memory allocation in postgres
Date: 2004-11-22 16:03:53
Message-ID: 15822.1101139433@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message George Weaver 2004-11-22 19:48:50 xml2 compile error - work_mem undeclared
Previous Message Kjetil Haaland 2004-11-22 13:28:47 memory allocation in postgres