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 1lopqC-0002Lg-Go for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Jun 2021 16:05:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lopqA-0003ov-31 for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Jun 2021 16:05:02 +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 1lopq9-0003oO-RR for pgsql-hackers@lists.postgresql.org; Thu, 03 Jun 2021 16:05:01 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lopq3-0004nP-LV for pgsql-hackers@postgresql.org; Thu, 03 Jun 2021 16:05:00 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 62D475C01F6; Thu, 3 Jun 2021 12:04:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 03 Jun 2021 12:04:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=tlZzEJwv+3jwDaP1CQVS+JwqbOPFIu4+4kfNJfHjqDQ=; b=Rlb0nb9E vXJiqwievb7uct+biueiTzmnH8KPXGLkyaFByk00+bnu0rfLd7gtsc+rHvaXD88U bLiyEaTbPoA9Uq3vEacRuBo6LrRZDceqg8ddUiJlJKAUYR3THfUodjlt1VC6l+Zw 5Lct3rw/HZMyXxtFOqF2dzwfsNW5b/lHn8tRG6iJplycIlNYfhdITXggQQ6k87zm R6kV+JGkl02sZaf1e8WI1cuvmnWT4JyUlExgJQBD/44/rFcQpSZ5ktj7v7DixT8I /hsH2L4U6J/B7HgAFsJ41FBvQ081glO3jttuTJJIGuEBH5gkQjYjz2I8LqGeyu96 w/vlAbIriiOzMw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdelledgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttddunecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeeggeevveffveejffdutefhvddtgeeghffhgfeuhfefjeei gfevhfefleevtdduteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 3 Jun 2021 12:04:52 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id E77422A0D0C; Thu, 3 Jun 2021 12:04:48 -0400 (-04) Date: Thu, 3 Jun 2021 12:04:48 -0400 From: Alvaro Herrera To: Michael Paquier Cc: Tom Lane , Robert Haas , Dilip Kumar , Andres Freund , pgsql-hackers Subject: Re: Move pg_attribute.attcompression to earlier in struct for reduced size? Message-ID: <202106031604.osw7f4udlk2e@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Jun-02, Michael Paquier wrote: > After 12 runs of VACUUM FULL on my laptop, I have removed the two > highest and the two lowest to remove some noise, and did an average of > the rest: > - HEAD, 100 text columns: 5720ms > - REL_13_STABLE, 100 text columns: 4308ms > - HEAD, 200 text columns: 10020ms > - REL_13_STABLE, 200 text columns: 8319ms > > So yes, that looks much visible to me, and an argument in favor of the > removal of the forced recompression on HEAD when rewriting tuples. Just to be clear -- that's the time to vacuum the table without changing the compression algorithm, right? So the overhead is just the check for whether the recompression is needed, not the recompression itself? If the check for recompression is this expensive, then yeah I agree that we should take it out. If recompression is actually occurring, then I don't think this is a good test :-) -- Álvaro Herrera Valdivia, Chile