Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVhKp-0007NH-9E for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Aug 2016 15:46:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bVhKo-0007Sf-SA for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Aug 2016 15:46:54 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bVhJR-0005Sj-N3 for pgsql-hackers@postgresql.org; Fri, 05 Aug 2016 15:45:29 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bVhJH-0005lL-Mc for pgsql-hackers@postgresql.org; Fri, 05 Aug 2016 15:45:29 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1bVhJE-0007vw-Ln; Fri, 05 Aug 2016 11:45:16 -0400 Date: Fri, 5 Aug 2016 11:45:16 -0400 From: Bruce Momjian To: Claudio Freire Cc: Pavan Deolasee , pgsql-hackers Subject: Re: Heap WARM Tuples - Design Draft Message-ID: <20160805154516.GD5068@momjian.us> References: <20160804180746.GT1702@momjian.us> <20160804222148.GA22567@momjian.us> <20160805021522.GE22567@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -3.1 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Fri, Aug 5, 2016 at 12:25:39PM -0300, Claudio Freire wrote: > > 2. The existence of index pointers to intermediate tuples will lead to index > > bloat. This is the same problem that we found in Simon's original proposal > > (discussed internally). None of the intermediate line pointers can be > > vacuumed until the entire chain becomes DEAD. Event if the a duplicate index > > key is inserted for every index, knowing that and reclaiming to the index > > pointers to the original root line pointer, will be difficult. > > I don't see the difference it makes for bloat between storing the root > tid and the intermediate tid, but I haven't yet figured out how > vacuuming would work so maybe I have to think about that to realize > the difference. Think of page pruning --- we can't remove a ctid that an index points to. The more ctids you point to in a HOT chain, the fewer ctids you can remove --- that's why we want to point only to the head of the HOT/WARM chain. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription + -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers