Re: OOM on EXPLAIN with lots of nodes

Поиск
Список
Период
Сортировка
От Alexey Bashtanov
Тема Re: OOM on EXPLAIN with lots of nodes
Дата
Msg-id 54B52AAA.20703@imap.cc
обсуждение исходный текст
Ответ на Re: OOM on EXPLAIN with lots of nodes  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Список pgsql-hackers
On 13.01.2015 16:47, Heikki Linnakangas wrote:
> Hmm, something like the attached? Seems reasonable...
>
> - Heikki
>
yes, i have tested something like this, it stopped eating memory

Just one small notice to the patch you attached: maybe it would be more 
safe to switch to oldcxt before calling 
ExplainPropertyText/ExplainPropertyList?
Otherwise are you pretty sure ExplainPropertyText and 
ExplainPropertyList are not going perform any pallocs without immediate 
pfrees in current memory context even in future?

Regards,  Alexey Bashtanov




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

Предыдущее
От: Dean Rasheed
Дата:
Сообщение: Re: WITH CHECK and Column-Level Privileges
Следующее
От: Andres Freund
Дата:
Сообщение: authentication_timeout ineffective for replication connections