Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgyOe-0002M9-Bq for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Feb 2017 18:45:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cgyOd-0002b2-OQ for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Feb 2017 18:45:43 +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 1cgyOV-0002Sv-9K for pgsql-hackers@postgresql.org; Thu, 23 Feb 2017 18:45:35 +0000 Received: from mail-qk0-x231.google.com ([2607:f8b0:400d:c09::231]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cgyOO-0005DK-PL for pgsql-hackers@postgresql.org; Thu, 23 Feb 2017 18:45:33 +0000 Received: by mail-qk0-x231.google.com with SMTP id n127so40121235qkf.0 for ; Thu, 23 Feb 2017 10:45:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=14E7y66kTYKDGSsPJM387rcPhyhZT93HX09fMnEj2W8=; b=ZzxkvaSyRCTvzbwLV47kdzpkP8NS0W1/fRFsNDC9Nm1MgimbEvjDHSsJTsh2vyVlrR YYaEPMFkPxAUJnk4IFWovRTBXbsLAy3x0y8eDRHzJMi1OjPtGgE/1Z3ZSlD5Smyi0usn nhj+0Pl4wYNzqhJVtTI8ASHM4wLpNHD2E5ZAbGi3gGDtoFSS6HNxETMpk1TE3SrFTb5Q OUYT5h2YlhRpU98wlbseSyroihLIAGCWpj4DiQ4Subbswqiff5yTZjORqjcb57mro71c 1mkILacIP9D+SPX2XfnetsDkMldFhWQEwjhc2PMTSKdT22jXXEamu3G1jHi9k7tO2KKO 9skQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=14E7y66kTYKDGSsPJM387rcPhyhZT93HX09fMnEj2W8=; b=r9hxdd9iOJWPSUv8UzdZgom9+riSHanYOPA1GImLUjC/OxhTSjqt3FitNXfH/jBz41 4gqkKxIc8GikGn7qUOPEkwRnzIIeLhOcsvwVlQm5q3h6Jbk54ZBnrncw+jOGLJoaCYX1 s14Pt4dPkdrramwlKu6hQOT73lTgxfKqgyTRKQS5lF5bRPNCKIkJW0zJePa3HqVyRWzY rJ0kB7zI5r8wzlPWHIxruQqksPr7TCfw0XdCK/5j4vVvmlgiCg4MNbCTknWKIQew7jxV lBYjgLOzsimEyWAMdx+tXwXYD0So4iqyQqy0mGckJkLctg4DN+EKY27z7xSLNNRIY8RV IjeA== X-Gm-Message-State: AMke39kmAc2eQ0Hi6oNhQ1kLruvsN0/9QPqgWPr6pF7Fcs6REgCIxTBhG9Y1xzFDirf1mGei X-Received: by 10.55.76.204 with SMTP id z195mr38622290qka.128.1487875527617; Thu, 23 Feb 2017 10:45:27 -0800 (PST) Received: from alvin.alvh.no-ip.org ([179.57.115.10]) by smtp.gmail.com with ESMTPSA id c6sm1466042qte.30.2017.02.23.10.45.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Feb 2017 10:45:27 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 244EB142C; Thu, 23 Feb 2017 15:45:24 -0300 (CLST) Date: Thu, 23 Feb 2017 15:45:24 -0300 From: Alvaro Herrera To: Bruce Momjian Cc: Pavan Deolasee , Jaime Casanova , Haribabu Kommi , Tomas Vondra , pgsql-hackers Subject: Re: Patch: Write Amplification Reduction Method (WARM) Message-ID: <20170223184524.icdwoh34txoob2ja@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170223183032.GL20486@momjian.us> User-Agent: NeoMutt/20170206-195-7adf12 (1.7.2) X-Pg-Spam-Score: -2.6 (--) 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 Bruce Momjian wrote: > Well, let's walk through this. Let's suppose you have three updates > that stay on the same page and don't update any indexed columns --- that > would produce a HOT chain of four tuples. If you then do an update that > changes an indexed column, prior to this patch, you get a normal update, > and more HOT updates can be added to this. With WARM, we can join those > chains With WARM, what happens is that the first three updates are HOT updates just like currently, and the fourth one is a WARM update. > and potentially trim the first HOT chain as those tuples become > invisible. That can already happen even without WARM, no? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers