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 1p0BJN-0002k5-P9 for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Nov 2022 00:50:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p0BJM-0004Jp-M5 for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Nov 2022 00:50:52 +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 1p0BJL-0004IS-OJ for pgsql-hackers@lists.postgresql.org; Wed, 30 Nov 2022 00:50:52 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p0BJG-00015z-L5 for pgsql-hackers@lists.postgresql.org; Wed, 30 Nov 2022 00:50:50 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 11B3432009B9; Tue, 29 Nov 2022 19:50:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 29 Nov 2022 19:50:42 -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=1669769441; x=1669855841; bh=7rufLvlsyJ P5ygr0eKCcMxRWAb9jL0fTXrHISP1pi6c=; b=ewsdzcVZ7Jr4Hzl+Ge7X78FzIo pJUGdbO4NyBxyWxy7aHhZ9//2B7v+P2RaDMDlNsHXJOe9fo8JyHveVXFA4RDEd8I 0xwlcH8AkpFHodZPmygFxh6Gd7Vg23LmBsS3caOfawmbg8NEfgKl0QAv8cy3fxAf PvedCstOSkwTTGJJtFW5oEchJHClNi48iXltPQmeyFrZvKYxMNYr7IkjStX8wwtB T3TnJN4rAsVASjAKJMlwd8vQglnLgaGnyG5NoYfaLr36tn3XgrXUustVCDG/iWkB /XpTTnGibuFRzhMpT4k2yO7jEjKVIP/z6YgG7SC07qYWz1RYMZQXF8onKrkQ== 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=1669769441; x=1669855841; bh=7rufLvlsyJP5ygr0eKCcMxRWAb9j L0fTXrHISP1pi6c=; b=JJPfI8lXNhgHHlNBxleAwLzkPeVDReOZ/O8WNvCHQdZH JZNtf4+0yNqtar86DgLG5VRMUxCVtnL30q94iY1ha4O9wgqxY4WJka9VQs7b5McK jz4HWiKibUrmABm8PjLczt5EXprf4e4OXyy9+lpDub594hMRkZ4eVaioMmQNIYd+ dgH/W3VXpEWhJ45CU5m84JHmIUA13/CZniBHhAlyi03ZFXS+b04ZHRQz9Bv8QWhj CbbH6MoFYL0X9K29QduUvbfz4LvNN2WP8tEnOoeGS3VwIgy6ml/i9eMgP/mf3Yxh e1DE62DNG6NUAZRVveyCA/+PjEsZhtIuorBFhP1+Lw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrtddvgddvjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeg geffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 29 Nov 2022 19:50:39 -0500 (EST) Date: Wed, 30 Nov 2022 09:50:34 +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="EqzhHz63madOKGUr" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --EqzhHz63madOKGUr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Nov 29, 2022 at 12:10:46PM +0000, gkokolatos@pm.me wrote: > Thank you. Please advice if is preferable to split 0002 in two parts. > I think not but I will happily do so if you think otherwise. This one makes me curious. What kind of split are you talking about? If it makes the code review and the git history cleaner and easier, I am usually a lot in favor of such incremental changes. As far as I can see, there is the switch from the compression integer to compression specification as one thing. The second thing is the refactoring of cfclose() and these routines, paving the way for 0003. Hmm, it may be cleaner to move the switch to the compression spec in one patch, and move the logic around cfclose() to its own, paving the way to 0003. By the way, I think that this 0002 should drop all the default clauses in the switches for the compression method so as we'd catch any missing code paths with compiler warnings if a new compression method is added in the future. Anyway, I have applied 0001, adding you as a primary author because you did most of it with only tweaks from me for pg_basebackup. The docs of pg_basebackup have been amended to mention the slight change in grammar, affecting the case where we do not have a detail string. -- Michael --EqzhHz63madOKGUr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmOGqNoACgkQnvQgOdby QH0BFQ//R4ZQurGrdS/1cxKFSf4t/QXTIDaD0FPSwnEDESWqVdf1sws5X5uvEKC+ oWkbomEadRwWEgLBoDFyGWxcjbGu2rbOCmec2gbt7cZhyZjMyPeYKkpSTXVm+m4C nbwL9wCcAKNpaeW+9Fb2kyoHKlJcEdB3XaH4ip44DyZUMqExGGWU70tweP7oNXUR WMeyoXELp3iGKNzEuG8hmrGSlaJKj7eRMM7IAlNVY6kSt7e9yWpwPYMBt8vedYW9 mhqKbsAZ4lkbMalN1gj+z/sL8woDHeUdwxeXoaQQB/vCY2EG2his6b6WOaTLIYyl 7RfwFG4ZuWH2u7ss5Nuva6dBaUoq18SWnXKB1E4RAlNUPPExoR8R5KS8WjzABDmC 7SE+4+nDM2NFWWqAJKQE9cd6NCXDFk2+B0zJ2IR9+WoRORAsSnUeyVw6fJgNuXLs b3MiC6+0mthvJz+y0caYlHjZwZ3ByWnIyOTBTlAszNKyLZoz9FuEO1k8aWc8pKZp seaMM/igMAuuj4X26IqYMxAkAgqaAuPoOxGBmGZPSF74LlggwMuCdKppzxxYStHc 6sNKcwidmJHDhJuLSkeA7+43+zuslGbjgAUCKFgdodCM8erR8QPMBHLgz0sJ0nwR 9kuRnjmaW0XdiCY3eQpN4dbltrDAtJ64tB6VnRLeGOSqjg4UOso= =GGD2 -----END PGP SIGNATURE----- --EqzhHz63madOKGUr--