pgsql: mbutils was previously doing some allocations, including invoking

Поиск
Список
Период
Сортировка
От neilc@postgresql.org (Neil Conway)
Тема pgsql: mbutils was previously doing some allocations, including invoking
Дата
Msg-id 20060112220402.B45F29DC995@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
mbutils was previously doing some allocations, including invoking
fmgr_info(), in the TopMemoryContext. I couldn't see that the code
actually leaked, but in general I think it's fragile to assume that
pfree'ing an FmgrInfo along with its fn_extra field is enough to
reclaim all the resources allocated by fmgr_info().  I changed the
code to do its allocations in a new child context of
TopMemoryContext, MbProcContext. When we want to release the
allocations we can just reset the context, which is cleaner.

Modified Files:
--------------
    pgsql/src/backend/utils/mb:
        mbutils.c (r1.54 -> r1.55)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/mb/mbutils.c.diff?r1=1.54&r2=1.55)

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Repair "Halloween problem" in EvalPlanQual: a tuple that's been
Следующее
От: adunstan@postgresql.org (Andrew Dunstan)
Дата:
Сообщение: pgsql: Clear up remaining compile warning for plperl on Windows.