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 1mcU95-0002cm-Cl for pgsql-general@arkaria.postgresql.org; Mon, 18 Oct 2021 15:01:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mcU8Y-00010z-3Q for pgsql-general@arkaria.postgresql.org; Mon, 18 Oct 2021 15:01:14 +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 1mcU8W-00010q-W1 for pgsql-general@lists.postgresql.org; Mon, 18 Oct 2021 15:01:13 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mcU8R-0005ra-Oj for pgsql-general@lists.postgresql.org; Mon, 18 Oct 2021 15:01:11 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id A92545C004D; Mon, 18 Oct 2021 11:01:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 18 Oct 2021 11:01:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:mime-version:subject:to:references:from :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=7 2vFnjc0AJiBrVxKPjUwJiXFf4T5RSJ1OnwDSUoD19Q=; b=sjxQgAKnJu2sOtI7l KkYYQmgJYzXzbqnU897UC696cy1SEEYk1u093LCI7kXWeiS3DSTJZgl7P/ZGlp9s 9u6gWaJdV9zepj/O+4wlp5TtI0JJeNEiFPSYWG2WErhEvrSdheJfGX4Bgn3nY7hz af53yEAxUUN53D2RxrUgrywpetIUdU2SGmC+mXn3zLmv4EBDys9e0Mg7B/jkbiT0 MyQSV2VL0i/rbGNu/Uc9UcC8i+0yjjM4CnzDHUeiUI036J3PKkm0DvQMIUkEZPoR +KUXaKi8A7sx1DkDvzkUHhSQPX77T5IDoCKbvA1ngKHej41wn4pHaWnw3qVQI1Gx G2nBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding: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=fm1; bh=72vFnjc0AJiBrVxKPjUwJiXFf4T5RSJ1OnwDSUoD1 9Q=; b=f4ZfX6iOgPXTgKuwd1o7C8PFZk/Q37gXYxJCQ17Gv6eLLvgiCygTr9cGI Q2nKxsiTEUZv5ZkVzk5odXmFZOyJyCZbYoSVCkaXbFPycctwv0YPKph20iqXJMib lIdKT+b5Mxoe750ouTbiUnwTpvE828i4/xdsIGa6WtalSB78NBmMs0W2s7D0bz7l m8S6XW4ymYDKrmOGW9UBpljXQw0Fz7Q3WVRsq92auNgp2caFrSNSwPNiWHEHBWgP mkjSWOB5k00nxY/B4UBnvGxnTNLtMdtPV1/KHpil3O+bz4PVReGpIjsz5syQK7ya md6xEh2wqR9MIpubCTGOTAnNxlazg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvtddgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpedugfeuleegveffhfegleejhefhtedtgeeileeggfeh fefffeevgeejtdeutefftdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 18 Oct 2021 11:01:05 -0400 (EDT) Message-ID: <6b5a2ce7-6119-505e-5d7b-32e55f87f882@aklaver.com> Date: Mon, 18 Oct 2021 08:01:04 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: Force re-compression with lz4 Content-Language: en-US To: Mladen Gogala , pgsql-general@lists.postgresql.org References: From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/18/21 06:41, Mladen Gogala wrote: > > On 10/18/21 01:07, Michael Paquier wrote: >> CPU-speaking, LZ4 is*much*  faster than pglz when it comes to >> compression or decompression with its default options.  The >> compression ratio is comparable between both, still LZ4 compresses in >> average less than PGLZ. >> -- >> Michael > > LZ4 works much better with deduplication tools like Data Domain or Data > Domain Boost (client side deduplication). With zip or gzip compression, > deduplication ratios are much lower than with LZ4. Most of the modern > backup tools (DD, Veeam, Rubrik, Commvault) support deduplication. LZ4 > algorithm uses less CPU than zip, gzip or bzip2 and works much better > with deduplication algorithms employed by the backup tools. This is > actually a very big and positive change. Not sure how much this applies to the Postgres usage of lz4. As I understand it, this is only used internally for table compression. When using pg_dump compression gzip is used. Unless you pipe plain text output through some other program. > > Disclosure: > > I used to work for Commvault as a senior PS engineer. Commvault was the > first tool on the market to combine LZ4 and deduplication. > > Regards > > -- Adrian Klaver adrian.klaver@aklaver.com