Re: Memory leak in RelationBuildRowSecurity

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Memory leak in RelationBuildRowSecurity
Дата
Msg-id 1852787.1601041699@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Memory leak in RelationBuildRowSecurity  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
Ответы Re: Memory leak in RelationBuildRowSecurity
Список pgsql-bugs
Konstantin Knizhnik <k.knizhnik@postgrespro.ru> writes:
> There is memory leak in RelationBuildRowSecurity function - it converts 
> node to expression tree in current memory context:

Hm ... this smells a whole lot like the issue we fixed recently for
partition expressions, namely: what the devil are we doing reloading
these expressions during RelationClearRelation?  We should delay
populating that cache until the value is requested.

            regards, tom lane



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