Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYhBb-0007D4-7l for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Jan 2017 22:46:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cYhBa-0008S3-MZ for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Jan 2017 22:46:02 +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 1cYhBT-0008Mt-27 for pgsql-hackers@postgresql.org; Tue, 31 Jan 2017 22:45:55 +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 1cYhBK-0003XE-Ei for pgsql-hackers@postgresql.org; Tue, 31 Jan 2017 22:45:53 +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 v0VMjaUU000463; Tue, 31 Jan 2017 17:45:36 -0500 From: Tom Lane To: Stephen Frost cc: Andres Freund , Alvaro Herrera , Pavan Deolasee , Jaime Casanova , Haribabu Kommi , Tomas Vondra , pgsql-hackers Subject: Re: Patch: Write Amplification Reduction Method (WARM) In-reply-to: <20170131222416.GS9812@tamriel.snowman.net> References: <20170131171001.wg7bc4pimfu6in6t@alvherre.pgsql> <20170131215538.5c65rexachourokl@alap3.anarazel.de> <32115.1485901288@sss.pgh.pa.us> <20170131222416.GS9812@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Tue, 31 Jan 2017 17:24:17 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <461.1485902736.1@sss.pgh.pa.us> Date: Tue, 31 Jan 2017 17:45:36 -0500 Message-ID: <462.1485902736@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Stephen Frost writes: > * Tom Lane (tgl@sss.pgh.pa.us) wrote: >> (I'm a little more concerned by Alvaro's apparent position that WARM >> is a done deal; I didn't think so. This particular change seems like >> good cleanup anyhow, however.) > Agreed. BTW, the reason I think it's good cleanup is that it's something that my colleagues at Salesforce also had to do as part of putting PG on top of a different storage engine that had different ideas about index handling. Essentially it's providing a bit of abstraction as to whether catalog storage is exactly heaps or not (a topic I've noticed Robert is starting to take some interest in, as well). However, the patch misses an important part of such an abstraction layer by not also converting catalog-related simple_heap_delete() calls into some sort of CatalogTupleDelete() operation. It is certainly a peculiarity of PG heaps that deletions don't require any immediate index work --- most other storage engines would need that. I propose that we should finish the job by inventing CatalogTupleDelete(), which for the moment would be a trivial wrapper around simple_heap_delete(), maybe just a macro for it. If there's no objections I'll go make that happen in a day or two. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers