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 1lm5RR-0006qi-AY for pgsql-hackers@arkaria.postgresql.org; Thu, 27 May 2021 02:08:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lm5RQ-0007mw-9R for pgsql-hackers@arkaria.postgresql.org; Thu, 27 May 2021 02:08:08 +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 1lm5RP-0007mc-0T for pgsql-hackers@lists.postgresql.org; Thu, 27 May 2021 02:08:08 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lm5RK-0006T0-Di for pgsql-hackers@postgresql.org; Thu, 27 May 2021 02:08:06 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id B54EA5C010F; Wed, 26 May 2021 22:07:59 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 26 May 2021 22:07:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=MmWl0PcdVYgGW6K9J9N4RbMAJEs GZ1EsE3gtrv1crLM=; b=zdcXnw4eOUkXaVG7vT4AQ4n3WTBjvQ36TsP0rouzLcc kQR1D4rXWS/LrRZknJGsU6NQTdhp/qqFiT8oTJhEKj7NDqxzwkw550MYGCIrNw9C IejSlm/CxTG95oyXdGV7jPw6V03x6JVT5N9xDLP4PWvO4ZbNnUbLBrrHuSetEGo6 bxuABw/zWc5E8NUYswI/h5vZW+cNRC7Ijz/iUD9fz7eGQHujs1WF5XG22M0N2eL2 i+PH8OSpDc4+Lbpm+WgLcCYx6292CGNc/VXo7If2y9iT3u0HbVj1rjFRh49gogan uYM5Kc2Y5gOQyexrZuh/lW2tzItXy2qo70p1dfLOepw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=MmWl0P cdVYgGW6K9J9N4RbMAJEsGZ1EsE3gtrv1crLM=; b=sRSjpE92DhEOoSf385FGpY 3zDLb11m1pI1h410JQASyzpLmLMxbYIVIFz/XUyADP8s2eZOBc9xNNS6qmKstTkP L2Jep8y8EVvWuYYrbDdc06D9T3PAAi/Q2qGCYhm/YH5c4kH4JMhEqu2KtCxO/vAb C0Q2DVwju6lWc/x3y8Exea5hn3GwUOB+RPa0d49uUGELxCBrswGQKbKlydCvU15T j+Rjl238ynvJSO2f9ZYASEdX/t6S2NCcIJsizX78vBubbMkySTUkyXd5mXLELDOY kfBbIcxsILSlIXYwO31OnZ72qBB//J6eDIII4EVeL8mWmTHhIYaNTu+FPfO2fHBA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdekgedghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucfkphepudduuddruddtvddrudektd drudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 26 May 2021 22:07:56 -0400 (EDT) Date: Thu, 27 May 2021 11:07:53 +0900 From: Michael Paquier To: Andres Freund Cc: Tom Lane , Dilip Kumar , pgsql-hackers , Robert Haas Subject: Re: Move pg_attribute.attcompression to earlier in struct for reduced size? Message-ID: References: <3962395.1621609263@sss.pgh.pa.us> <20210521211929.pcehg6f23icwstdb@alap3.anarazel.de> <20210527003144.xxqppojoiwurc2iz@alap3.anarazel.de> <1677691.1622075746@sss.pgh.pa.us> <20210527015415.ctuj4yrwnjip5kve@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rUb6QZ3L6lm2/JA0" Content-Disposition: inline In-Reply-To: <20210527015415.ctuj4yrwnjip5kve@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --rUb6QZ3L6lm2/JA0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 26, 2021 at 06:54:15PM -0700, Andres Freund wrote: > Oh, it'll definitely be more expensive in that case - but that seems > fair game. What I was wondering about was whether VACUUM FULL would be > measurably slower, because we'll now call toast_get_compression_id() on > each varlena datum. It's pretty easy for VACUUM FULL to be CPU bound > already, and presumably this'll add a bit. This depends on the number of attributes, but I do see an extra 0.5% __memmove_avx_unaligned_erms in reform_and_rewrite_tuple() for a normal VACUUM FULL with a 1-int-column relation on a perf profile, with rewrite_heap_tuple eating most of it as in the past, so that's within the noise bandwidth if you measure the runtime. What would be the worst case here, a table with one text column made of non-NULL still very short values? -- Michael --rUb6QZ3L6lm2/JA0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmCu/vkACgkQnvQgOdby QH1qeA/8D+02I7lOYrCkVJtA0DpTbEbocv8O0O0eHV6MNnRRUz868Ogrtlffn+GT akPs0g7qkV2bv4srVUQcIyn0ide6hbup2Hs8q7D76aOdlJfIcX3E0Cdt7h0Z9tGv 5vKiRqaJEVAMprdrAtBcaljqt+BTdKdhB15lRWJUWUkT2DQB/XkLW2hIaayy0zDu I8b1vPB7NOKQjMcBNpRVmuPtbTIQs5lfjPQ+zXujcCRxHTQRv8C23TL5dUpfr5Dy UFk5UijHVvUJjODTsoOU01TMY8RVky+Fxdel033EJxICut49sQ/hEYdNNi7/0VgE BYZ7ffpoXsXgtRp2sg/r3aHeF8Z5RG2ymyU9TgygD/4C1RZBWU5e5nMBdzu5fUdZ UfGPoQiG6FTaPZHosdRs/j+Lzk2i7bawjd0Y2PaZg5mKNDVFcD9a8QKECNuYmNbq 5f3Yi/ZRmDJVOAu4nFc5MTmCyT6tHoLbYh2VZoFUz2D7SLCq9W31HeRO1nbtmMV2 s2tDo1NOo+vwKJrzYSTuAgS48o8iISHO196VWSM5jhi9HH+3NbtH4htNy/g9O1WR 9utC7JhLqRzXAVcSeXOrYaP5KIk5Uv9qopeLMYujWdl80YM+5jathXZteM9/R4cX QIgArGAYznTqzrwWmanOPqqw0S6b5uOEOioAm199dVbVNigQbhI= =aTBA -----END PGP SIGNATURE----- --rUb6QZ3L6lm2/JA0--