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 1pTpcq-00037h-KZ for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Feb 2023 19:45:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pTpbr-0005Qs-HU for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Feb 2023 19:44:31 +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 1pTpbE-0007gm-35 for pgsql-hackers@lists.postgresql.org; Sun, 19 Feb 2023 19:43:52 +0000 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pTpbB-0004xy-9U for pgsql-hackers@lists.postgresql.org; Sun, 19 Feb 2023 19:43:50 +0000 Received: by mail-io1-xd34.google.com with SMTP id d6so497275iom.5 for ; Sun, 19 Feb 2023 11:43:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=lzWUrPaZXWkGjlxRH1rgSBpq9CJrNI/LYIzIa1gz9ok=; b=N9HrrKQTt8FDn/uRs3GIqW6pjn3dIqEyg4EZLdE6MTc42qe+jhggjsa/0whRTdV9bi +6e1+FFoJ5acKnJjUvxQ2bRsNmqx1cok+vRrpqIWKe9iYmHU7Vmf34mXfm+00ekkh36R O6i0uNCz/gV6kGxXqiFRxOfJfOsitS3eNYmm0qvnfKvbbocMyhygrlJk1qiLQLmvt2s1 7vAJSiCZBqXlHqmKWkjwkaGRTjWIEz8Ql6mBukSdPvWzvo1Z5GqyF5K55svLG6P2HJNN myv5+BhVGyKq+eCESH83ZJsHMy0/eBw1LsvIZ8OQs9YuBCpGqQ7/o+jCkHQgjurijGVJ xh8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lzWUrPaZXWkGjlxRH1rgSBpq9CJrNI/LYIzIa1gz9ok=; b=1Zr/K7svskdIjwR0NQnsBjB1HNfTmuvYE6WisdJqsgKrrraESJDQKnaRbTs76/NsJt WKRMQcRdLLWaujqGnkwK1GNdqket5LQtqj0rXyzz2wJ6UsrxVY3iCp3UyIK+jcrgXULp ncKuTvzvNuZptZpqhxLwkIv6yicum0Olv4ACDwAOUOYW8lwJe8pdVIQa1GspMpddPdor iKt4Flq4V17uZbbqLH5+dTyG/NpjvQwE8bgqZvK7snGKFjMebJLGFi+hcV8GVcZk0xRI JK4CAyuoVx27SoK6VHeR7NsCu4vVLW95HA0h9txKtyfg7Rx2oka2TZTH/qgaMOhVanyO iJZQ== X-Gm-Message-State: AO0yUKXyEZkkbQm3U8Jxzx4fe2LTb898A2tnt/v+DTXckH70thnuS/KZ ygGm0TBpuc9if5KM+L5iqOobKA== X-Google-Smtp-Source: AK7set94xrMENIvs0XEAVBG7LKzo+q5D+ymOPw81EGSzmzkOSdqeWka6dbea+7aFyFyi2yq6Bs+sWg== X-Received: by 2002:a5d:8d95:0:b0:729:d10b:d1f6 with SMTP id b21-20020a5d8d95000000b00729d10bd1f6mr5210754ioj.0.1676835827703; Sun, 19 Feb 2023 11:43:47 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id j8-20020a02cb08000000b003a60da2bf58sm3228467jap.39.2023.02.19.11.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Feb 2023 11:43:47 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id D7A5B800800; Sun, 19 Feb 2023 13:43:45 -0600 (CST) Date: Sun, 19 Feb 2023 13:43:45 -0600 From: Justin Pryzby To: Tomas Vondra Cc: gkokolatos@pm.me, shiy.fnst@fujitsu.com, Michael Paquier , pgsql-hackers@lists.postgresql.org, Rachel Heaton Subject: Re: Add LZ4 compression in pg_dump Message-ID: <20230219194345.GJ1653@telsasoft.com> References: <-myGeDiZ-ePDRyi18026Iu2HTTfmwfjWaJn4OWJ2F3oglZUfJTOQ7FARPW7gYxE4vK3b0HpwYoiHR45nfOWReRvvJZfCBfJzPP5iJyn4muk=@pm.me> <20230125180020.GF22427@telsasoft.com> <20230126062846.GO22427@telsasoft.com> <6YZqN2HEE4yJxxxXWiMl4QWwKzLon0SdKETTGVkT9zjWnXMftGZjLKHHjGFuwC_5I6xL2s8nMXdLQGA4vEFveYXSHbfD9K9pDQvEJF2y99o=@pm.me> <535565cd-b69f-c064-a845-15c0fc44db4a@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <535565cd-b69f-c064-a845-15c0fc44db4a@enterprisedb.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 Some little updates since I last checked: + * This file also includes the implementation when compression is none for + * both API's. => this comment is obsolete. s/deffer/infer/ ? or determine ? This typo occurs multiple times. currently this includes only ".gz" => remove this phase from the 002 patch (or at least update it in 003). deferred by iteratively => inferred? s/Requrires/Requires/ twice. s/occured/occurred/ s/disc/disk/ ? Probably unimportant, but "disc" isn't used anywhere else. "compress file handle" => maybe these should say "compressed" supports_compression(): Since this is an exported function, it should probably be called pgdump_supports_compresion.