Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIfC2-00046R-Du for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Jun 2016 16:51:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bIfC1-0002mN-PC for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Jun 2016 16:51:57 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bIfC1-0002m8-4e for pgsql-bugs@postgresql.org; Thu, 30 Jun 2016 16:51:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bIfBy-0007Ms-Ih for pgsql-bugs@postgresql.org; Thu, 30 Jun 2016 16:51:56 +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 u5UGppte008652; Thu, 30 Jun 2016 12:51:51 -0400 From: Tom Lane To: Andres Freund cc: petrum@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #14208: Inconsistent code modification - 3 In-reply-to: <20160630164712.xliqfdkrb63tumny@alap3.anarazel.de> References: <20160622144830.5791.22512@wrigleys.postgresql.org> <31897.1466610316@sss.pgh.pa.us> <20160623225301.4v7heuiyvkfwi5ev@alap3.anarazel.de> <8242.1467304819@sss.pgh.pa.us> <20160630164712.xliqfdkrb63tumny@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 30 Jun 2016 09:47:12 -0700" Date: Thu, 30 Jun 2016 12:51:51 -0400 Message-ID: <8651.1467305511@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Andres Freund writes: > On 2016-06-30 12:40:19 -0400, Tom Lane wrote: >> Whether or not the toplevel transaction is empty, by the time we get here >> it would have nentries == nentries_mem, no? > Not, if the top-level transaction spilled to disk. But doesn't the code stanza just above this loop pull that spillage back in? It's certainly doing *something* to txn->nentries_mem. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs