Re: pl/python tracebacks

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pl/python tracebacks
Дата
Msg-id 1298551560.4783.2.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на Re: pl/python tracebacks  (Alex Hunsaker <badalex@gmail.com>)
Список pgsql-hackers
On lör, 2011-02-12 at 02:00 -0700, Alex Hunsaker wrote:
> PyString_AsString is used all over the place without any pfrees. But I
> have no Idea how that pstrdup() is getting freed if at all.

pstrdup() like palloc() allocates memory from the current memory
context, which is freed automatically at some useful time, often at the
end of the query.  It is very common throughout the PostgreSQL code that
memory is not explicitly freed.  See src/backend/utils/mmgr/README for
more information.



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

Предыдущее
От: Daniel Farina
Дата:
Сообщение: Re: Sync Rep v17
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Invitation to Cluster Hackers meeting at pgCon