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 1lm409-00042r-5P for pgsql-hackers@arkaria.postgresql.org; Thu, 27 May 2021 00:35: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 1lm408-0000vO-38 for pgsql-hackers@arkaria.postgresql.org; Thu, 27 May 2021 00:35:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lm407-0000vG-Ri for pgsql-hackers@lists.postgresql.org; Thu, 27 May 2021 00:35:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lm405-0005hj-Tg for pgsql-hackers@postgresql.org; Thu, 27 May 2021 00:35:51 +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 14R0ZkE81677692; Wed, 26 May 2021 20:35:46 -0400 From: Tom Lane To: Andres Freund cc: Michael Paquier , Dilip Kumar , pgsql-hackers , Robert Haas Subject: Re: Move pg_attribute.attcompression to earlier in struct for reduced size? In-reply-to: <20210527003144.xxqppojoiwurc2iz@alap3.anarazel.de> References: <20210517212857.qyk4fxykfbxhmxof@alap3.anarazel.de> <3962395.1621609263@sss.pgh.pa.us> <20210521211929.pcehg6f23icwstdb@alap3.anarazel.de> <20210527003144.xxqppojoiwurc2iz@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 26 May 2021 17:31:44 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1677690.1622075746.1@sss.pgh.pa.us> Date: Wed, 26 May 2021 20:35:46 -0400 Message-ID: <1677691.1622075746@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > The efficiency bit is probably going to be swamped by the addition of > the compression handling, given the amount of additional work we're now > doing in in reform_and_rewrite_tuple(). Only if the user has explicitly requested a change of compression, no? regards, tom lane