Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lmMdd-00031k-7b for pgsql-hackers@arkaria.postgresql.org; Thu, 27 May 2021 20:29:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lmMdc-0002tu-6I for pgsql-hackers@arkaria.postgresql.org; Thu, 27 May 2021 20:29:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lmMdb-0002tm-Us for pgsql-hackers@lists.postgresql.org; Thu, 27 May 2021 20:29:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lmMdZ-0005dG-So for pgsql-hackers@postgresql.org; Thu, 27 May 2021 20:29:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 14RKTiQU1886211; Thu, 27 May 2021 16:29:44 -0400 From: Tom Lane To: Peter Geoghegan cc: Robert Haas , Dilip Kumar , Michael Paquier , Andres Freund , pgsql-hackers Subject: Re: Move pg_attribute.attcompression to earlier in struct for reduced size? In-reply-to: References: <20210527003144.xxqppojoiwurc2iz@alap3.anarazel.de> <1677691.1622075746@sss.pgh.pa.us> <20210527015415.ctuj4yrwnjip5kve@alap3.anarazel.de> <20210527021402.b5n2sqw66y2fd6fl@alap3.anarazel.de> <1683251.1622083422@sss.pgh.pa.us> <20210527032105.xistjgattubmjymm@alap3.anarazel.de> <1685584.1622086493@sss.pgh.pa.us> <1687119.1622088698@sss.pgh.pa.us> <1709324.1622122448@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Thu, 27 May 2021 12:57:38 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1886209.1622147384.1@sss.pgh.pa.us> Date: Thu, 27 May 2021 16:29:44 -0400 Message-ID: <1886210.1622147384@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Geoghegan writes: > On Thu, May 27, 2021 at 7:25 AM Robert Haas wrote: >> To say that nobody cares about that is to deem the >> feature useless. Maybe that's what Tom thinks, but it's not what I >> think. > I don't think that follows at all. Yeah. My belief here is that users might bother to change default_toast_compression, or that we might do it for them in a few years, but the gains from doing so are going to be only incremental. That being the case, most DBAs will be content to allow the older compression method to age out of their databases through routine row updates. The idea that somebody is going to be excited enough about this to run a downtime-inducing VACUUM FULL doesn't really pass the smell test. That doesn't make LZ4 compression useless, by any means, but it does suggest that we shouldn't be adding overhead to VACUUM FULL for the purpose of easing instantaneous switchovers. I'll refrain from re-telling old war stories about JPEG/GIF/PNG, but I do have real-world experience with compression algorithm changes. IME you need an integer-multiples type of improvement to get peoples' attention, and LZ4 isn't going to offer that, except maybe in cherry-picked examples. regards, tom lane