| От | Tom Lane |
|---|---|
| Тема | Re: BUG #16112: large, unexpected memory consumption |
| Дата | |
| Msg-id | 368.1573665707@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #16112: large, unexpected memory consumption (Andres Freund <andres@anarazel.de>) |
| Ответы |
Re: BUG #16112: large, unexpected memory consumption
|
| Список | pgsql-bugs |
Andres Freund <andres@anarazel.de> writes:
> On 2019-11-13 15:50:04 +0100, Tomas Vondra wrote:
>> The attached trivial patch fixes that by adding a pfree() at the end of
>> the function.
> Hm. That's clearly an improvement. But I'm not quite sure it's really
> the right direction. It seems like a bad idea to rely on
> ExecMakeTableFunctionResult() otherwise never leaking any memory.
Considering that ExecMakeTableFunctionResult went from zero pallocs
to one, I don't see a strong reason why it should have bothered with
a private memory context before, nor do I think that's a good
response now.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера