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 1mcStZ-0007k7-LS for pgsql-general@arkaria.postgresql.org; Mon, 18 Oct 2021 13:41:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mcStY-0000he-Jo for pgsql-general@arkaria.postgresql.org; Mon, 18 Oct 2021 13:41:40 +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 1mcStY-0000hV-A1 for pgsql-general@lists.postgresql.org; Mon, 18 Oct 2021 13:41:40 +0000 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mcStV-0007aH-RX for pgsql-general@lists.postgresql.org; Mon, 18 Oct 2021 13:41:39 +0000 Received: by mail-qt1-x829.google.com with SMTP id r17so15257973qtx.10 for ; Mon, 18 Oct 2021 06:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=dx1CcC9AURMBcivBmrkzGzJGGKkFPNPxnlNCunNa2w4=; b=T6CS0Vv9cODJjZELMWV85uVBg3c+GJ7NoNjeC1Unl3xcyieX0xRTvaJ+J81YKjrRCA G9lTnHW3KUzBYSh9uM/2ym0WSfU+HxMCS+KMik9v863q0YlmWMk4trjHBuata3uYuDd8 PXM//+GRGCRiL2809Zogq7RUXiVvJWiZ40j9W2fsgfygLRLQbV8Qoj0GyFSyilDGmSj8 uXr9LC7N91Ryfc+7wPJRJBCjDLcUCcQfRPi5YnBE58vIhXFtWgUZjkjtoZ6SEG5qNZXR KRl+IjsQtNOOrOT/yVtN8bl0rIIGDFs+IwqxGscnwmsrWwl7jLRM+MSCZYQzd0itjlII 7p4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=dx1CcC9AURMBcivBmrkzGzJGGKkFPNPxnlNCunNa2w4=; b=fxUm18fyEJRitjS4kHaOqeFPsyOVS9ZtK/XzVn310j6itJXrMAmK26jpLVbV4wXrtu 2G1pGV5Dd98JKvHNtd9KaT0+EmZ/zjunTa60+sbWdrtyJiuv8KuE0XM7rnWlmfXVhDP/ EPiz6+EO7Tf1xx/qvSbdGQCe7UEvHbXxp3J7Jkgslsg83D8Binx7ET6Oc/wqoHN6qUOQ v+tGrBkEHRxflltYxOxno6LKg/rC9UF9mYs0TeB/pwDFUjkK2QpOUk9O6OhiGNM2pl1M yBrbve7Us+T+Mye4W25LYKkTe3K7nyaTrir0VWYtZ7iVhfFTzQw9I1i0/Pj/ZaXy0JVs /h7A== X-Gm-Message-State: AOAM530l3Dd0unZY+V1SBgMEUc0BI7Sv0a4baqjK47eozmp4FkdaALzU h+f+R05sMOdqV4A0proPHsOHG232cPTq+Q== X-Google-Smtp-Source: ABdhPJxJN+CR1EPW12pMfiVBUawekYLcgN/nOMOLssiHrTx6KZWSnxreBx0h8Iu9pKp2rNHBFDUlQw== X-Received: by 2002:ac8:7d46:: with SMTP id h6mr28683268qtb.93.1634564495086; Mon, 18 Oct 2021 06:41:35 -0700 (PDT) Received: from [192.168.2.100] (pool-72-79-19-93.nwrknj.east.verizon.net. [72.79.19.93]) by smtp.gmail.com with ESMTPSA id j20sm2250113qtj.72.2021.10.18.06.41.34 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Oct 2021 06:41:34 -0700 (PDT) Message-ID: Date: Mon, 18 Oct 2021 09:41:33 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: Force re-compression with lz4 Content-Language: en-US To: pgsql-general@lists.postgresql.org References: From: Mladen Gogala In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. 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 -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com