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 1ne2s0-0003Q7-4B for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Apr 2022 22:50:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ne2ry-0003ek-LF for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Apr 2022 22:50:50 +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 1ne2rx-0003ea-0X for pgsql-hackers@lists.postgresql.org; Mon, 11 Apr 2022 22:50:50 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ne2rs-0006JD-Gr for pgsql-hackers@lists.postgresql.org; Mon, 11 Apr 2022 22:50:48 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B10A23201E15; Mon, 11 Apr 2022 18:50:40 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 11 Apr 2022 18:50:40 -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; t=1649717440; x=1649803840; bh=sMUTr+qQZJ OEXqEBYjUua8erDKt92vsgbAzkF0+sZeA=; b=niM3A/v/41zw8I80KHQ9Rd3T01 z8WoWmgKUeva9B2eaE4JcWwdeNd7v70YsHE1n4pTyZzT91S9xQVS8g49ghvUWvCl GYnTRsqQY9yNW9UNY98Grk6bc5bMuGiB+yMvMQd3OcMm3XU4JUR/8je+qKLyE3/5 kp24iNvQII0JyTLRaJ9Hp1K06sr/SvI6Dsno/4VJmwLhREaxhuBO5kUXXFq8Io+z cfWBW9mxEAitBsbDMGb5LoWXtRAvXi1+/fIrLHVIscAOSuuXsNSXiLH+11DOk8gG 2/rHWjD14TFs8uCjB1HAqr31KSw6dqsN4zhWIlrtoY+fa/k4RUcX5PPtCQvA== 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; t=1649717440; x= 1649803840; bh=sMUTr+qQZJOEXqEBYjUua8erDKt92vsgbAzkF0+sZeA=; b=K H015tmTPlZHk3eAxF/zoXkMPLvqq7VK35X+IqM5f6VuPqdlEYPYGcJCp26Eh+zhb qmAW4D9T79XaTlvwRSzb+UTuaoK8SwVIV9v1ereQUugW26tNca9l7IVOC1sK1VSh Q15ckIEwTVW3pZuMpzVi4smiagS1E7rSXTczHH+al+xU/eURUCc4Zcmgyo/pvOdt GLyb/AFstOLsRY8gZ/08WWpH+QTDpemW+QaGYhj3k5/YDmmwgSRqBrXhWKjh1kmt f0LcFl9qRWhR6Aq9VqSFyIpwkNECVEZtPJ5V4NmtqYRZVTBvas/Zet68nBV06sT7 mmBonUkVWd1ASYFgqWx3g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudekjedgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 11 Apr 2022 18:50:38 -0400 (EDT) Date: Tue, 12 Apr 2022 07:50:29 +0900 From: Michael Paquier To: Robert Haas Cc: Postgres hackers , Georgios Subject: Re: Fixes for compression options of pg_receivewal and refactoring of backup_compression.{c,h} Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dR40omU1+onpw7Ke" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --dR40omU1+onpw7Ke Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 11, 2022 at 11:15:46AM -0400, Robert Haas wrote: > +1 for this in general, but I think that naming like > "compression_algo" stinks. If you think "compression_algorithm" is too > long, I think you should use "algorithm" or "compression" or > "compression_method" or something. Yes, I found "compression_algorithm" to be too long initially. For walmethods.c and pg_receivewal.c, it may be better to just stick to "algorithm" then, at least that's consistent with pg_basebackup.c. -- Michael --dR40omU1+onpw7Ke Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmJUsLQACgkQnvQgOdby QH3u0hAAhrnos5Pra+n4FBW/Ee679dEWpkApBgJcqU7dmke5SbsHpCvFL51UrBM9 11Uvp7Bu7Xmw726aOOMVaOYdLAnesYBwPQW/Ds+NsoMcJ3b2bOBy2wemsPMBbph/ 9lcQmEJgC1j+WzBBp7czLaxqbyJ4awn1IR3yYWD25kjXPOwhsfkVFzXqAOOE5uWJ VBAwrH9e+17D1Zkb/FbdoYOeaP+RNvfAqAdtxytYf1ev0EZ7QgKiB1UfeUGLw+qk ZWfqdzlRUsFDZ7tljBwX41HPeCffze+7cHWpCg4jj8SdcUDlu4P2IxIm/gLy2aZz Piy+vcMMcFGivCMDtF6EPJKJtAvAqJPp9MUTMWIVaIofWaL9T4/Pk+sZJNN7KxVt 8c/mEp/5FL5QnQHI0FLdEukm5nOFSV3nyPt+k4/4khRNorD+DiLhPb2CGWBfs8Ce anE4g5kYdZMmNlSKveYqKcEuwC3dcOvoT+5HcTqU3Zwglejlmo1WKD42VxWYbcRe 9zagPLy3qb7O/B/x8t3b47Hi7tBoUH7B3zOJ3QFIIEVSFKRPhStNMqBhPXrUXFbm hiT2t50NM2iA7XjzkC+YieljkFHypcu6mLiOX6W/pfwFCh9lG4P9crw6U2P2DsAA 9Mg/v/DKxM7k1yGLhV9pg1hMcB9ck1iEg1BT/VxJp4IM/VBPTm8= =J0RU -----END PGP SIGNATURE----- --dR40omU1+onpw7Ke--