From: Tom Lane <tgl@sss.pgh.pa.us>
To: Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Memory leak in RelationBuildRowSecurity
Date: Fri, 25 Sep 2020 09:48:19 -0400
Message-ID: <1852787.1601041699@sss.pgh.pa.us> (raw)
In-Reply-To: <21356c12-8917-8249-b35f-1c447231922b@postgrespro.ru>
References: <21356c12-8917-8249-b35f-1c447231922b@postgrespro.ru>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, k.knizhnik@postgrespro.ru, pgsql-bugs@lists.postgresql.org
Subject: Re: Memory leak in RelationBuildRowSecurity
In-Reply-To: <1852787.1601041699@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox