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 1nYBEO-0002c5-FS for pgsql-hackers@arkaria.postgresql.org; Sat, 26 Mar 2022 18:33:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nYBEN-00023C-8d for pgsql-hackers@arkaria.postgresql.org; Sat, 26 Mar 2022 18:33:43 +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 1nYBEM-000233-TF for pgsql-hackers@lists.postgresql.org; Sat, 26 Mar 2022 18:33:42 +0000 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nYBEJ-0002aA-SZ for pgsql-hackers@lists.postgresql.org; Sat, 26 Mar 2022 18:33:42 +0000 Received: by mail-io1-xd2e.google.com with SMTP id p22so12524798iod.2 for ; Sat, 26 Mar 2022 11:33:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LGaZHJb/1BR9Nmqlj3fqEk5+Bb5mexln/yatwh9ebXw=; b=ovQzvOzuiGHPVAIwOZ1m0s3T5jcL93cFH2Fv7RjvAoJoaHfSEz6qHMu06VJ0HRQM/B QLL+soCGP6QBfsVZDM+dtrMKqx5rbUyBjcU8WaFQiiiwSZdKDqWiCFozj1l8hdpQKjFo z5a3Wy3dWeyRwiHC7UomV0q8qf2hlfyFRWr890N4wK1jjPkgq3/6mwykwFZQFQAEroOP Nryq97HN+fRyb5l4FujRIfVgOyj4CV1uRFUVVe6TuOE2idFOGz3vts3Uu2PhMo0pJIE2 YdEOfM651DVl4ej9y1OmAZng28OzyztgtCYMq5QxFutdWw+WAfr7SJsLiyG36ZinELkx 3aEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=LGaZHJb/1BR9Nmqlj3fqEk5+Bb5mexln/yatwh9ebXw=; b=uv1oyPiv7fUiHijOOfI6p25p8fsr63r6FRLFVzZt20IPcst3epbWTdGrYQDI2mxFu1 Tb4mnYh/Twy4q8J456WAhRPBJ5f0vkvvGPqExjXBn72OAZdeeh7p4EheWwVG/qqdKjU6 gbOEq1Si941fJ8klu6jbbJXAC5rT6fQ0jPxQ0zjg9M9zpEqGUrtWOtRVTCO6ND/fvUu+ GS5vjDLiSthrCw5ik8uE9bcPWS7KcgVHznxaW0b7PH1Be/ZDNve2IhkUUmK+kGaHB+i4 WA2aETvPnjqC2869q7B+YC8Yv2/kk77bTLw/eOfpV+jlbRq9oYA++dWlvoqI0vLBTpxD +u0A== X-Gm-Message-State: AOAM533YpcJzIZjI6TTm+h314JmyQj83xb+nHvE+TKCP+uv84kD3F68A UJd6S3vNO8u1tOPBhUW9TWTq5MwBIOV56g== X-Google-Smtp-Source: ABdhPJwqgahP5NKdgx7Aym1l/Hdif+Knw4ErDD1wICyMjuulJlivFoMKpsJkjjn1uZp17fuRqDJddg== X-Received: by 2002:a05:6638:6:b0:321:268c:6986 with SMTP id z6-20020a056638000600b00321268c6986mr9124778jao.79.1648319618069; Sat, 26 Mar 2022 11:33:38 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id v3-20020a5d9483000000b00640d3d4acabsm4773559ioj.44.2022.03.26.11.33.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Mar 2022 11:33:37 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id BC5B7800BC8; Sat, 26 Mar 2022 13:33:36 -0500 (CDT) Date: Sat, 26 Mar 2022 13:33:36 -0500 From: Justin Pryzby To: Georgios Cc: pgsql-hackers@lists.postgresql.org, Rachel Heaton Subject: Re: Add LZ4 compression in pg_dump Message-ID: <20220326183336.GJ28503@telsasoft.com> References: <20220326162156.GI28503@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220326162156.GI28503@telsasoft.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Mar 26, 2022 at 11:21:56AM -0500, Justin Pryzby wrote: > 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'm not sure if there's anything worth saving, but I did that last year with 0003-Support-multiple-compression-algs-levels-opts.patch I sent a rebased copy off-list. https://www.postgresql.org/message-id/flat/20210104025321.GA9712@telsasoft.com#ca1b9f9d3552c87fa874731cad9d8391 | fatal("not built with LZ4 support"); | fatal("not built with lz4 support"); Please use consistent capitalization of "lz4" - then the compiler can optimize away duplicate strings. > 0004: The include should use and not "lz4.h" Also, use USE_LZ4 rather than HAVE_LIBLZ4, per 75eae0908.