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 1iqUKM-0000Or-6I for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Jan 2020 03:54:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iqUKJ-0003f1-DT for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Jan 2020 03:54:11 +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 1iqUKJ-0003eu-4Y for pgsql-hackers@lists.postgresql.org; Sun, 12 Jan 2020 03:54:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iqUKE-0004TN-JZ for pgsql-hackers@lists.postgresql.org; Sun, 12 Jan 2020 03:54:10 +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 00C3rvBQ029691; Sat, 11 Jan 2020 22:53:57 -0500 From: Tom Lane To: Tomas Vondra cc: Amit Kapila , Noah Misch , Amit Khandekar , Alvaro Herrera from 2ndQuadrant , Andres Freund , Juan =?utf-8?B?Sm9zw6kgU2FudGFtYXLDrWE=?= Flecha , PostgreSQL Hackers , Robert Haas , Thomas Munro Subject: Re: logical decoding : exceeded maxAllocatedDescs for .spill files In-reply-to: <20200112033930.6cy3n6ybft6pp7gw@development> References: <20200104185148.GA2270238@rfd.leadboat.com> <20200109053704.GA2502006@rfd.leadboat.com> <22498.1578548741@sss.pgh.pa.us> <14739.1578613901@sss.pgh.pa.us> <18117.1578616812@sss.pgh.pa.us> <20200112033930.6cy3n6ybft6pp7gw@development> Comments: In-reply-to Tomas Vondra message dated "Sun, 12 Jan 2020 04:39:30 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29689.1578801237.1@sss.pgh.pa.us> Date: Sat, 11 Jan 2020 22:53:57 -0500 Message-ID: <29690.1578801237@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tomas Vondra writes: > On Thu, Jan 09, 2020 at 07:40:12PM -0500, Tom Lane wrote: >> It seems reasonably likely to me that this result is telling us about >> an actual bug, ie, faulty back-patching of one or more of those fixes >> into v10 and perhaps earlier branches. > Well, one thing we did in 11 is introduction of the Generation context. > In 10 we're still stashing all tuple data into the main AllocSet. I > wonder if backporting a4ccc1cef5a04cc054af83bc4582a045d5232cb3 and a > couple of follow-up fixes would make the issue go away. Hm. I'm loath to back-port Generation contexts. But looking at a4ccc1cef5a04cc054af83bc4582a045d5232cb3, I see that (a) the commit message mentions space savings, but (b) the replaced code in reorderbuffer.c doesn't look like it really would move the needle much in that regard. The old code had a one-off slab allocator that we got rid of, but I don't see any actual leak there ... remind me where the win came from, exactly? regards, tom lane