| От | Tom Lane |
|---|---|
| Тема | Re: IndexJoin memory problem using spgist and boxes |
| Дата | |
| Msg-id | 26107.1520192782@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: IndexJoin memory problem using spgist and boxes (Anton Dignös <dignoes@inf.unibz.it>) |
| Список | pgsql-hackers |
=?UTF-8?Q?Anton_Dign=C3=B6s?= <dignoes@inf.unibz.it> writes:
>> Looking at the patch, I see that you changed the lifetime of the temporary
>> context from per-tuple to per-index-scan. It is not obvious that this change
>> is correct.
> The problem before this patch was that the traversalMemoryContext in
> this function was set to per-query lifetime.
> The memory allocations in the per-query lifetime caused this high
> memory consumption.
Yeah ...
> I changed the temporary context to per-index-scan so that it can also
> be used for traversalMemoryContext.
But we have also had many complaints about leakage across a single index
scan, if it traverses many index entries. I think you're just moving the
pain out of one use-case and into another.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера