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 1nYTdu-0000mY-Dq for pgsql-hackers@arkaria.postgresql.org; Sun, 27 Mar 2022 14:13:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nYTds-0004Sn-AU for pgsql-hackers@arkaria.postgresql.org; Sun, 27 Mar 2022 14:13:16 +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 1nYTdr-0004Se-TG for pgsql-hackers@lists.postgresql.org; Sun, 27 Mar 2022 14:13:15 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nYTdp-0007dI-Ay for pgsql-hackers@lists.postgresql.org; Sun, 27 Mar 2022 14:13:14 +0000 Received: by mail-lf1-x130.google.com with SMTP id d5so20684781lfj.9 for ; Sun, 27 Mar 2022 07:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lYgeR2NWIlZaUrkF7cKdHCuwlXEFhuOhrQWmULKY4m8=; b=a99ApOzlod07pe6GaP+oSRN11IobEntxNucqSuR7/wGFITNQ+rpCcdRxvbfchGyRBm ll6zjLXnVTfC0ADj5l4SxZt1SZFgFMGyblWpR2RRNDF5FPw/zZ4id8PCQ3cmR+TLPUSD 5L29hjXTpDjJwz/4acEuohDcQtPI2JgtFfjOyqEYCw2+3VsftpsX2e+2Hz5TXw4fKSeX Ja8L0ibCRmlcjo6Uu0ODQVU9EW2HlOqjmuZ7aJnpsClwlXw+aaGkKqjPw42pdcDx9KV7 iFexQvca2Qk4Ztkyaxq7H77odADoX07QCono+QL3miq85eO4tf6nfNfOtGihM2ehZTmM NzRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lYgeR2NWIlZaUrkF7cKdHCuwlXEFhuOhrQWmULKY4m8=; b=CcIRThUcui/+rSY+2YHOVafysfJ/FBvSYk7520zEXyNX0ntZA9xd18LbIkNlbqAM8Q cCKOyI/BL3fN70zmtSvSwkaH6TSjpQdabeXgq0nKUDiqkg7+JkSM9drF9QCIwtvgeYgT El+XNQrXmMKFHKFfSlNKh7JTmr3r8Qlc1JJGwkLraz32y5mGrCYQGAFlZGqiEwjvJEfB N2UhyB3OTMa7NYpEm53ZgnlVM4CGQShh+JMrC5q9XurjCbWgN/0PrHtFVo/XMOfN1KwV 2hQ518MVNgYHp10oB/mvtOvs8Z3QbsGEMA8212sk6OLKTVjbmgmp5QKX9M7+G72Q98ra nCgw== X-Gm-Message-State: AOAM532G2XIpHmn0JfI3z5QadVMalvGNCCV9xvwRCUH1WImPp6hqvEJm kIJLvrui86BlW6GAn+YNDjLHEfBJQhENg9agQcI= X-Google-Smtp-Source: ABdhPJwrr0xAwF8eejeAZKlIaPG3TYoFmWYgYWa4/tUe8YJE8PJP3/dNgfIYF0WrzSIKZ8Rv+7KR9XXfIDGcivtHwBY= X-Received: by 2002:a05:6512:3d13:b0:449:fd85:f61d with SMTP id d19-20020a0565123d1300b00449fd85f61dmr16376772lfv.368.1648390391240; Sun, 27 Mar 2022 07:13:11 -0700 (PDT) MIME-Version: 1.0 References: <20220326162156.GI28503@telsasoft.com> In-Reply-To: <20220326162156.GI28503@telsasoft.com> From: Robert Haas Date: Sun, 27 Mar 2022 10:13:00 -0400 Message-ID: Subject: Re: Add LZ4 compression in pg_dump To: Justin Pryzby Cc: Georgios , PostgreSQL Hackers , Rachel Heaton Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Mar 26, 2022 at 12:22 PM Justin Pryzby wrote: > 0002: I wonder if you're able to re-use any of the basebackup parsing stuff > from commit ffd53659c. You're passing both the compression method *and* level. > I think there should be a structure which includes both. In the future, that > can also handle additional options. I hope to re-use these same things for > wal_compression=method:level. Yeah, we should really try to use that infrastructure instead of inventing a bunch of different ways to do it. It might require some renaming here and there, and I'm not sure whether we really want to try to rush all this into the current release, but I think we should find a way to get it done. -- Robert Haas EDB: http://www.enterprisedb.com