Re: Memory leak with palloc

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Memory leak with palloc
Дата
Msg-id 21215.1039986314@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Memory leak with palloc  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
A couple weeks ago I said:
> The right long-term solution is to arrange for all query-lifetime data
> to be allocated in a specific context that can be freed in-toto when
> we end the query. To do this cleanly, we have to fix the executor to
> not scribble on plan trees (executor state nodes should point to plan
> nodes, never vice-versa).  I've been intending to do that for awhile,
> but it's not done yet ...

Just FYI, this is now done.  Your example doesn't leak memory anymore
in CVS tip.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: CSN
Дата:
Сообщение: OIDS
Следующее
От: Andreas Schlegel
Дата:
Сообщение: Index and performance