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 1mcp6l-0003mY-RE for pgsql-general@arkaria.postgresql.org; Tue, 19 Oct 2021 13:24: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 1mcp6k-0003sc-OE for pgsql-general@arkaria.postgresql.org; Tue, 19 Oct 2021 13:24:46 +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 1mcp6k-0003sT-Ch for pgsql-general@lists.postgresql.org; Tue, 19 Oct 2021 13:24:46 +0000 Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mcp6h-0002qx-S4 for pgsql-general@lists.postgresql.org; Tue, 19 Oct 2021 13:24:46 +0000 Received: by mail-qt1-x82e.google.com with SMTP id z24so18168863qtv.9 for ; Tue, 19 Oct 2021 06:24:43 -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=6xZQp47ai/tKv6P8S5KliUXwhjwHuap2PVUentgoeXw=; b=OvbRFOlojnKoiHAKkqBbsvvIJAlItY4XF6AnSBdBkUGmEADqp2Gfef1aduVjNZsZFB v+IWsWbL6WinEuGvHN7gyx86xknt9r3hoFPW/I1TmpIiOjJcylaZHEyU1pNA76pDGjrH dvxaNq+itnZjn1VDcG7wjZyygVEmOaIXLbMCmkWkpWkrFAHJl2U8kidRMni8zw6XbPXm n1Sd9aIn8T8but4BfMcz2SIfS+3IUF8YtJNob0KXHgZKmOCk55P8FtRGZY/4eVeBFBdj gHshCVl8CjRS0TxTDoj/wPuRah7nKIFDFqU2xNrmVumESz6TtogWm5cIjaEG/vtJbJT/ Z8lg== 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=6xZQp47ai/tKv6P8S5KliUXwhjwHuap2PVUentgoeXw=; b=Pjxb+neAVDakX4tN8Ad2xNtFt/7nr3/oG68TjHOpDZxm5A96/LFZVo7Fgr9BcdJSKi 6XzWME/uYHvtcCwWZathNF+6pnE0jkNpHj74Z1Xm4q49BCQ7k44L0rZPzu4hgCIhXAdl t0FrAl3mespKsqrfy1EEG/hcDgGWBMfr0Xj6wFgwnYWLolslRvNbYgnUQsdsoplvm4BV pHJiLTPlALmGCM9Jw8AddfYyRW/wYUJfmSqTAcJhlSfBX4W6mbytU+o7gvQJpX6i9vBP AzUEFzS+S3KPPmXvhfnXGuEFm6+Rntn5NhhHVvzZeP4mE/nYovMWCA0cjBzaJo/k9TIc JlRA== X-Gm-Message-State: AOAM5308qOc/XC8p2UBal+lIMzIE1YPeT4OSS68k/Dr/aD+jW+y2LxrA tjAQUQ7NfE9RcIBdcMmPlIU86k9GWL5UUw== X-Google-Smtp-Source: ABdhPJwA3xrmsk/8bzSzG9hX5MgCY9nFE28fKN/p0LNan6J0SYZUNfgdYR57cLxrZXBGNBsmVD2xTg== X-Received: by 2002:a05:622a:14:: with SMTP id x20mr37946902qtw.372.1634649881429; Tue, 19 Oct 2021 06:24:41 -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 74sm7901051qke.109.2021.10.19.06.24.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Oct 2021 06:24:41 -0700 (PDT) Message-ID: <3bef5bb7-a1c9-95f8-cfe4-98fa0d96e7c6@gmail.com> Date: Tue, 19 Oct 2021 09:24:40 -0400 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: Adrian Klaver , pgsql-general@lists.postgresql.org References: <6b5a2ce7-6119-505e-5d7b-32e55f87f882@aklaver.com> From: Mladen Gogala In-Reply-To: <6b5a2ce7-6119-505e-5d7b-32e55f87f882@aklaver.com> 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 11:01, Adrian Klaver wrote: > ot 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. This applies when using a 3rd party commercial backup tool with deduplication. You'd be surprised how many people do that. One tool to backup them all, one tool to find them and on the LTO cartridge backup them. I apologize for this cheesy paraphrase of Tolkien, but I couldn't resist. Long story short, for the 3rd party backup tools LZO4 compression will yield better deduplication ratios than other forms of compression, thereby saving you space. -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com