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 1nZ411-0007MT-Bn for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2022 05:03:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nZ40z-0006Nh-20 for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2022 05:03:33 +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 1nZ40x-0006NX-HP for pgsql-hackers@lists.postgresql.org; Tue, 29 Mar 2022 05:03:32 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nZ40s-0002Jd-Vg for pgsql-hackers@lists.postgresql.org; Tue, 29 Mar 2022 05:03:30 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E20315C0131; Tue, 29 Mar 2022 01:03:24 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 29 Mar 2022 01:03:24 -0400 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; bh=mxGeqYlwqA6okSw8CkG+6BZshduq1sDI0GLJca ew/js=; b=j7ywlRLYr/aUmKSsk3LoA6otsGQ2uRBIRdl69FsEMLsWJKLeHFVzG8 haDWodY4gWGzleptxFOAyHSudsLFXDCWoAd3RD564nYbxzQcY16mq8zMfz06ZOXG +J8LOkkdHdfowPf6+aF7e9wPYrQCiDpYhRaTbn6PUsAb1j62toql00YL2TMzRPYj RUxG3+f3VgRurEA15A67pQmniUWJBDK+Wscx/uN7iILuSZqoS7/KdmCBBFv0EtGi 51whtzBjd3AapXrjHqdtSX4kuoFg0VB/M5FEQioll3ZHL4BlBvdSzOPoBRKGMenP wj+P93XexWB0s8WI2Dyg+ez/Hv5wI8lQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; 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:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=mxGeqYlwqA6okSw8C kG+6BZshduq1sDI0GLJcaew/js=; b=E/f/3jTcf4il3Pgm2vanLkpjev/iQ+Ga9 W/M/ZpuiMtoColNfFLVxZPxo0hD4giVCzw9fQiHXEjHPZR6iiNiXzl9CPPkSn1IY Jma8cyS2aug7Gbo02W/Pp7/F0iobuYNdb37Ivyn9paMDV7kYTjiVYGqehy2r+gDV 8muyMZdUPeXgyVCWq2nBmYOZoRp7H3ozkr9Oci3KDYMxdHV6OlJMKO4DPn5X94bH raOxDXNgVDi7WmZQ5TexuIRNNCrNTN6FCHiz/dtZCLplhl5PbVL6jbV4VM/tEWMV NPxUgnNSbKE1QNgRO+nJCznn2R4q33Be8TRiOQQDLxzAEiL7w2j+A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudehkedgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 29 Mar 2022 01:03:18 -0400 (EDT) Date: Tue, 29 Mar 2022 14:03:12 +0900 From: Michael Paquier To: Robert Haas Cc: Justin Pryzby , Georgios , PostgreSQL Hackers , Rachel Heaton Subject: Re: Add LZ4 compression in pg_dump Message-ID: References: <20220326162156.GI28503@telsasoft.com> <20220327160635.GL28503@telsasoft.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gHem/OcEyhfWALpd" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --gHem/OcEyhfWALpd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Mar 28, 2022 at 08:36:15AM -0400, Robert Haas wrote: > Well, I think the first thing we should do is get rid of enum > WalCompressionMethod and use enum WalCompression instead. They've got > the same elements and very similar names, but the WalCompressionMethod > ones just have names like COMPRESSION_NONE, which is too generic, > whereas WalCompressionMethod uses WAL_COMPRESSION_NONE, which is > better. Then I think we should also rename the COMPR_ALG_* constants > in pg_dump.h to names like DUMP_COMPRESSION_*. Once we do that we've > got rid of all the unprefixed things that purport to be a list of > compression algorithms. Yes, having a centralized enum for the compression method would make sense, along with the routines to parse and get the compression method names. At least that would be one step towards more unity in src/common/. > Then, if people are willing to adopt the syntax that the > backup_compression.c/h stuff supports as a project standard (+1 from > me) we can go the other way and rename that stuff to be more generic, > taking backup out of the name. I am not sure about the specification part which is only used by base backups that has no client-server requirements, so option values would still require their own grammar. -- Michael --gHem/OcEyhfWALpd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmJCkxAACgkQnvQgOdby QH07Vw//XjwO+GOgQZn5H5tUtMgbIb3t7ubVia+dSg77Filbon5RTkQbOv5eVznN ECyVzCqyZGh28qrPlZEQDj9qUQ+94HGWpYsBZNsyV3o3V8ryNK/NrXZIw/BC4ZsD wctUJA3dMi6y5vMi8K0yJrD6yQLV7v7zCCm2xYCvTasY0HddiXelD9+KGbEvohQK SLHPbhrmwGE3U7CTOmULregCZ3jnyYcDWADA59e0ff9jTANZk2K0UcLYZqhhBJXc GNorqL4Jml6ZdqRJIGxQ/H0B5SWbZ7y2efRDkQbTa2Dm+3mIEiuoHCC3fHx498tt +x7D+OtGQGB8zAMimEpWBkIQCfwAP/kvxZchXAgeMG0j59i6LSs3lLVIO5MKM7ME OmVmK/sdIyT4+F11wYUfDzxzK9TAu0JJTxO/6NGIljk3UOa4Z3WcDRFv4rg1yBbk HB5QIwKnNXfpChreU7FxurGCNi/U75rKKhjzqo12yT/uSCv7pyxf7RCDlw8GHcoP zrgqQAXK1uMG/7NjSLkobKJcb+goLVyB8XAWNPJyUlQhCaBNMkF7v+jmIevMqn5z RAVT4ZX3/F26olaZmiEJre47P3DmXLkSPUVeSRvj2jInCYZQs2qeP9wHStsYXitj gbM6Ob4N1NraXa/ran17isgLtLIVeg3Bcy/wpp2WZ2kx34XBt5s= =1OJh -----END PGP SIGNATURE----- --gHem/OcEyhfWALpd--