Re: Is there a memory leak in commit 8561e48?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Is there a memory leak in commit 8561e48?
Дата
Msg-id 9114ae0b-80f1-3afa-3a8f-710393738532@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: Is there a memory leak in commit 8561e48?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Is there a memory leak in commit 8561e48?
Список pgsql-hackers
On 5/2/18 12:30, Tom Lane wrote:
> I'm not particularly.  It seems impossible that _SPI_stack could grow
> faster than the machine's actual stack, which would mean (on typical
> setups) that you couldn't get more than perhaps 10MB of _SPI_stack
> before hitting a stack-overflow error.  That's a lot by some measures,
> but I don't think it's enough to cripple anything if we don't free it.
> 
> Also, if someone is routinely using pretty deep SPI nesting, they'd
> probably be happier that we do keep the stack rather than repeatedly
> creating and enlarging it.

Yes, that was the idea.  Here is an adjusted patch.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: A few warnings on Windows
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: A few warnings on Windows