Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVTVT-0002MA-JP for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Aug 2016 01:00:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bVTVS-00013k-R7 for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Aug 2016 01:00:58 +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 1bVTVR-000135-MQ for pgsql-hackers@postgresql.org; Fri, 05 Aug 2016 01:00:57 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bVTVK-0006ad-7j for pgsql-hackers@postgresql.org; Fri, 05 Aug 2016 01:00:56 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1bVTVI-0008TP-OF; Thu, 04 Aug 2016 21:00:48 -0400 Date: Thu, 4 Aug 2016 21:00:48 -0400 From: Bruce Momjian To: Claudio Freire Cc: Pavan Deolasee , pgsql-hackers Subject: Re: Heap WARM Tuples - Design Draft Message-ID: <20160805010048.GD22567@momjian.us> References: <20160804180746.GT1702@momjian.us> <20160804222148.GA22567@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160804222148.GA22567@momjian.us> 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 Thu, Aug 4, 2016 at 06:21:48PM -0400, Bruce Momjian wrote: > Another approach would be to keep updates on the same page in a single > WARM chain, even if all indexes have changed columns. We will already > have code to walk the HOT chain looking for matches, and at most one > tuple in the update chain is visible. The downside of this is > unnecessary checking if the tuple matches the index. Forget this idea I had. If all the indexed keys change, we don't save anything in fewer index tuples, and we extend the length of the HOT chain because we always have to point to the root of the HOT chain in the index. The only advantage would be allowing reuse of the old index tuple if the indexed value changes back to and old indexed value in the same chain, which seems rare. Let me say I am excited at the progress that has been made on this item in the past 36 hours and I think we are triangulating on a solution. I know we are restricted by the existing page format and pg_upgrade in adding this features, but frankly that limitation seems minor --- even if designing a new storage system, figuring out how to do WARM chains efficiently would be hard. -- 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