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 1ozujR-0008JH-5o for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Nov 2022 07:08: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 1ozujP-0007Tk-WB for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Nov 2022 07:08:40 +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 1ozujP-0007Mb-MV for pgsql-hackers@lists.postgresql.org; Tue, 29 Nov 2022 07:08:39 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ozujJ-0000Et-A3 for pgsql-hackers@lists.postgresql.org; Tue, 29 Nov 2022 07:08:38 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 254AD5C010F; Tue, 29 Nov 2022 02:08:32 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 29 Nov 2022 02:08:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1669705712; x=1669792112; bh=amtxlSrPkZ SuYv9MIc/89LO3VICO5DXre2Say4cDaLU=; b=EthOIVwr2UKKmvrs1mzm1S9pC3 FSD5Y2V2jWXPUUKXwWLY32O4jMM5mi/gAx3o0uxcl3FBoLBwq6unE0CNJsHkNh6R oagTmMtOcRcThGSJmC+QzrnYdWtaFJF1AZKqYUPbUhsv7AfuDssb4Gq1EibO0oBm niYLqlneo8NuEY92v01NHF8ecHeeIYPy54dayQs1VoqQI5jDxDK38c382taIu8sH rXuWZ966hzgbipgGYo++v567simj1qrZ7boxLP+y2/GNF7Bvy7+clUNADjAKNSZx v7zfX5JMZVS2cqeRimVVPYNxdJ7hztrXGxob/RL8auSGZtcW+zCrgdkLAR2A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1669705712; x=1669792112; bh=amtxlSrPkZSuYv9MIc/89LO3VICO 5DXre2Say4cDaLU=; b=ord9a0nl9lTRPvv+GoUVAmr9J++XhdnofwOOLW6DWwRw aycjld3FPQSNtDLQdDN0V1EIUufBm8vQp4dmeRFEQcHtnmsJE8ql2Rr3qjDSt6TE AivEM8YmIFleiilKODi6TY04m60AwTJnI5za+HL5F+kT3LeVlFUINfLYZlBdif40 7JQf3Yu8QNplnNWhG5jU/thmPOOnVTys4OzRgTCDtk9SdW8cnapz6V/1f2WCbJAU GKYKzzL0B7Fe6DFHEyNQDUDmSr7heZ9Oo0yJBTW2ly/NRkmVRINqB4uGw6wRoZlp soLfWJpELc7JKNaDyztJT6JrPGfnHgkODGZQhpzDCQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrjeefgddutdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 29 Nov 2022 02:08:30 -0500 (EST) Date: Tue, 29 Nov 2022 16:08:27 +0900 From: Michael Paquier To: gkokolatos@pm.me Cc: Justin Pryzby , pgsql-hackers@lists.postgresql.org, Rachel Heaton Subject: Re: Add LZ4 compression in pg_dump Message-ID: References: <165970942594.29780.15623018354659505573.pgcf@coridan.postgresql.org> <-pU80vtiyXMfSSpn4SWOR97t71MVmDOyHaJtvGsdEfroFsFUDdc-UaqD-8LMPMw2sy-7B2_IVnlrATfVvXwtv8n3kexLePZ7iWgiOnE4jRI=@pm.me> <20221120172611.GQ11463@telsasoft.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DMGbo5+jLnUE2Ion" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --DMGbo5+jLnUE2Ion Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Nov 29, 2022 at 03:19:17PM +0900, Michael Paquier wrote: > Attached is an alternative that does not sacrifice the pluggability of > the existing routines while allowing 0003~ to still use them (I don't > really want to move around the checks on the supported build options > now in parse_compress_specification(), that was hard enough to settle > on this location). On top of that, pg_basebackup is able to cope with > the case of --compress=0 already, enforcing "none" (BaseBackup could > be simplified a bit more before StartLogStreamer). This refactoring > shaves a little bit of code. One thing that I forgot to mention is that this refactoring would treat things like server-N, client-N as valid grammars (in this case N takes precedence over an optional detail string), implying that N = 0 is "none" and N > 0 is gzip, so that makes for an extra grammar flavor without impacting the existing ones. I am not sure that it is worth documenting, still worth mentioning. -- Michael --DMGbo5+jLnUE2Ion Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmOFr+sACgkQnvQgOdby QH23Kg//fL7aK/iQvL0u4vovzE8KcSB03hOWwDz1OIbcMUa/tp6umb0/KzQ7WLqA OSTw5jGzfktgq3YR+2hg5HB9Sz2xNSzSx6Vp3MhwDPTAdBBYC0v+1E7dTpv+Jc0L 1shztytEgkgCzJxNnDYac+faPUjraUI279JUbfn5+VqLuD2HdH9BhL3hbNCFHEHp G90kDM37SwuDJTpb4PAgmZ7qvfmpu5LKQQSc6Tn9grCzH9RepbUqDN5vEnkmnsjR UaEGtFxhHcmY9IwjBl/9k8Ck3u2C1+L7sbDnkz/AkvJ/4e947jrPZSrqmymTPFHJ 1FRXOz0bYFHbjwEFPDkkximxeSyRd/qAFfeSG/Y/0325RwHA9lC3LtjY1bIz3gkE OK+rKIEjl+OmKAPjQ6ZRvtBX6GL0BSlyON1Hhrf45hQJAJ02NiEfR8vDVZ+3PyJO +BsBFgNJeNHs+WrkCXoF/Ow1Y2PiLTnM00lvcptd4BdxpJoaIwt6j4SQa5AmK7YX e0LGRVRp4kSdvuCkA0H4/QzWMRTUrQl/Jq0b6lXrh9mcpiNDaYDfkgIdIplnCAZq 1fCFZ1WUruV138h5iAA0LuweYO0ZmYieupW2a/JmaUACzRgjoSkt7rUWVVqRELb7 MSO2HK0DgHuvNLYrGRwLAaziwz7x24LjH5kR/IkVMGzU5GK7HQY= =N1V1 -----END PGP SIGNATURE----- --DMGbo5+jLnUE2Ion--