memory leak in xml2 contrib module

Поиск
Список
Период
Сортировка
От tv@fuzzy.cz
Тема memory leak in xml2 contrib module
Дата
Msg-id d7a03755ddcb11e5ffca891bbf7aa33d.squirrel@sq.gransy.com
обсуждение исходный текст
Ответы Re: memory leak in xml2 contrib module  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-bugs
Hi,

one of my colleagues found ugly memory leak in the xml2 contrib module.
Try this:

select xpath_number('<data>' || generate_series || '</data>','/data') from
generate_series(1,500000);

This will allocate arbitrary amount of memory, and it won't release it
until the backend exits (user disconnects). We've found this in 8.4 and
I've verified it's still present in 9.0.1.

I know the xml2 module is deprecated and most of the functions was moved
into core (and behave correctly) but xslt_process function was not and
that's why xml2 module is used.

Pavel Stehule already prepared a fix (see the attachment).

regards
Tomas
Вложения

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

Предыдущее
От: Martin Edlman
Дата:
Сообщение: Re: BUG #5770: Foreign key violation after insert
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: BUG #5771: C:\Program Files\PostgreSQL\8.3\Data is not accessible.