Re: Memory leak in RelationBuildRowSecurity - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Memory leak in RelationBuildRowSecurity
Date
Msg-id 1852787.1601041699@sss.pgh.pa.us
Whole thread Raw
In response to Memory leak in RelationBuildRowSecurity  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
Responses Re: Memory leak in RelationBuildRowSecurity  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
List 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 by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #16636: Upper case issue in JSONB type
Next
From: Max Vikharev
Date:
Subject: Re: BUG #16620: Autovacuum does not process certain databases after migration from postgresql 10