Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEyK9-0006v3-U2 for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Apr 2019 15:42:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEyK7-0005xU-Ee for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Apr 2019 15:42:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEyK7-0005xF-5z for pgsql-hackers@lists.postgresql.org; Fri, 12 Apr 2019 15:42:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEyK1-0000Vy-W0 for pgsql-hackers@lists.postgresql.org; Fri, 12 Apr 2019 15:42:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x3CFgO39031028; Fri, 12 Apr 2019 11:42:24 -0400 From: Tom Lane To: Michael Paquier cc: Amit Langote , Robert Haas , Alvaro Herrera , PostgreSQL Hackers Subject: Re: hyrax vs. RelationBuildPartitionDesc In-reply-to: <20190410110922.GE2728@paquier.xyz> References: <12316.1552504492@sss.pgh.pa.us> <14279.1552508314@sss.pgh.pa.us> <036852f2-ba7f-7a1f-21c6-00bc3515eda3@lab.ntt.co.jp> <29436.1554731961@sss.pgh.pa.us> <20190410064220.GD2728@paquier.xyz> <3f025355-b6d2-e2ec-ead1-d1eafa5e73fd@lab.ntt.co.jp> <20190410110922.GE2728@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Wed, 10 Apr 2019 20:09:22 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31026.1555083744.1@sss.pgh.pa.us> Date: Fri, 12 Apr 2019 11:42:24 -0400 Message-ID: <31027.1555083744@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Wed, Apr 10, 2019 at 05:03:21PM +0900, Amit Langote wrote: >> The problem lies in all branches that have partitioning, so it should be >> listed under Older Bugs, right? You may have noticed that I posted >> patches for all branches down to 10. > I have noticed. The message from Tom upthread outlined that an open > item should be added, but this is not one. That's what I wanted to > emphasize. Thanks for making it clearer. To clarify a bit: there's more than one problem here. Amit added an open item about pre-existing leaks related to rd_partcheck. (I'm going to review and hopefully push his fix for that today.) However, there's a completely separate leak associated with mismanagement of rd_pdcxt, as I showed in [1], and it doesn't seem like we have consensus about what to do about that one. AFAIK that's a new bug in 12 (caused by 898e5e329) and so it ought to be in the main open-items list. This thread has discussed a bunch of possible future changes like trying to replace copying of relcache-provided data structures with reference-counting, but I don't think any such thing could be v12 material at this point. We do need to fix the newly added leak though. regards, tom lane [1] https://www.postgresql.org/message-id/10797.1552679128%40sss.pgh.pa.us