Re: memory allocation in postgres

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: memory allocation in postgres
Дата
Msg-id 15822.1101139433@sss.pgh.pa.us
обсуждение исходный текст
Ответ на memory allocation in postgres  (Kjetil Haaland <kjetil.haaland@student.uib.no>)
Список 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 по дате отправления:

Предыдущее
От: Kjetil Haaland
Дата:
Сообщение: memory allocation in postgres
Следующее
От: George Weaver
Дата:
Сообщение: xml2 compile error - work_mem undeclared