Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s9I7w-001Dn5-Vi for pgsql-hackers@arkaria.postgresql.org; Tue, 21 May 2024 05:33:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s9I7w-007kMg-Hs for pgsql-hackers@arkaria.postgresql.org; Tue, 21 May 2024 05:33:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s9I7v-007kMW-FJ for pgsql-hackers@lists.postgresql.org; Tue, 21 May 2024 05:33:32 +0000 Received: from wfout8-smtp.messagingengine.com ([64.147.123.151]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s9I7s-001F71-44 for pgsql-hackers@postgresql.org; Tue, 21 May 2024 05:33:30 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.west.internal (Postfix) with ESMTP id 3F9841C0018C; Tue, 21 May 2024 01:33:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 21 May 2024 01:33:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1716269605; x=1716356005; bh=ifle0kRIKm OuJ505Rc2t/DcasCUltk4kiqVptjREOgY=; b=e7eqVY8kFEMSSO5NwtQg8/KGvo oO7kxAl62YJvqBvNl9dNhhFceqh825UxB10kVrVMDGdlXVksrRfVCPVF8311JO9G amsKxeOvmAbxf/5rqaNzLiS8Vvjy5kjAio/yWhTBo/TbumvZOKzPTlDQHhwZd8ut XuvSvzCYScbbkzByZi02at3zeAvs4cMuJYotD+GADpgiDOMxmtCyD2rxCAhEaBJd csiwYJvdW8fQiJ3egC9oWqcATmXOX6Qz+mKs/63hCuPatcShRdZOQJpAE22LxhXF gVQ7IHspDtgIFc9afRqOqd+hBy6RVpmSWOOmysrSBkNW56LiyI2WElcPBKKg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1716269605; x=1716356005; bh=ifle0kRIKmOuJ505Rc2t/DcasCUl tk4kiqVptjREOgY=; b=VtgnxoDiV6XorSTwEFS/SPBMjlei0TtF7MCpa4hdPH2d s1AbcL6kr4niH4LPB6ASt/pi+urzgf8VnjAqtBfuy2Ap0Qqv82IFASkOGuVeqQbg K4s8uBJ/d4s89p7PbfDbjJjCzUNBUsqOL/5Q8t1o5SjD0nFiaqKn/5lFlD3kqCQz h+WvFPGXqYuORwbciAGWlRfpv8JU144deAx359HbIPAcoQBU5lgssFIxJRKIG2UU v2bV7QiON/bXhmdIiJTQX/lSiSNv+kAelJfxzeAi68wtvrK8HuqZ8uEvYeIY+fn0 2vhdMV+qEkI/0rjAEnQ/gKI7kjKCDjG18eMgfnhZyA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeiuddgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepieeggfekjeehffevffffudev veekvdehhfejteeltdelhfejveeigefhieejtefhnecuffhomhgrihhnpehpvghrlhdroh hrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehm ihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 21 May 2024 01:33:24 -0400 (EDT) Date: Tue, 21 May 2024 14:33:16 +0900 From: Michael Paquier To: Alexander Lakhin Cc: Dagfinn Ilmari =?iso-8859-1?Q?Manns=E5ker?= , pgsql-hackers Subject: Re: Cleaning up perl code Message-ID: References: <70b340bc-244a-589d-ef8b-d8aebb707a84@gmail.com> <87ttisfcah.fsf@wibble.ilmari.org> <730c8376-77db-5af6-ea2f-d530f68c5fa3@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="I2ZieoTdU7lxMRHg" Content-Disposition: inline In-Reply-To: <730c8376-77db-5af6-ea2f-d530f68c5fa3@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --I2ZieoTdU7lxMRHg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 21, 2024 at 06:00:00AM +0300, Alexander Lakhin wrote: > I reviewed my collection of unica I gathered for several months, but had > found some of them too minor/requiring more analysis. > Then I added more with perlcritic's policy UnusedVariables, and also > checked for unused subs with a script from blogs.perl.org (and it confirm= ed > my only previous find of that kind). Nice catches from both of you. The two ones in generate-wait_event_types.pl are caused by me, actually. Not sure about the changes in the errcodes scripts, though. The current state of thing can be also useful when it comes to debugging the parsing, and it does not hurt to keep the parsing rules the same across the board. >> The scripts parsing errcodes.txt really should be refactored into using >> a common module, but that's a patch for another day. >=20 > Agree, and I would leave 005_negotiate_encryption.pl (with $node_conf, > $server_config unused since d39a49c1e) aside for another day too. I'm not sure about these ones as each one of these scripts have their own local tweaks. Now, if there is a cleaner picture with a .pm module I don't see while reading the whole, why not as long as it improves the code. -- Michael --I2ZieoTdU7lxMRHg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmZMMhwACgkQnvQgOdby QH1dpg//YBNbccKy/s25hmMRmm84VV1R92adUo1FKgtA4EAkOVBAebdIA0DyvHYr 3ER0WAQ1GrqIYUdnJYY+Ll+3gK75V+NYvvCQqZe84YoQAS4Y8/qrWPYL2/KKZ1g2 bWrC2mXuwfDqpyB8Q7mqhvmMbA6qf6qQUjSqbsf+w3+mTYPmzCSoWAGKCXBom8mC WXkEOTu5lERNQNEf8UKTjtfZZH2e2eZUU9Xtx37hCg3EMol7eWM/WkEuj+sCsB+6 f875aQxaTnaHOLkuv2ybkiFLcwIdUOVhL4KZJVOG5ZG2b3tGQgisbTIZZEUeUxCH OVkGaR+LDbh4YI1/UjUZLF9IwQm+g9JA8h2nmmM7wmMuzoQtUEfrNIYaMoPqmQGo kkF1bmIe5yISlAkc/5IGvTGKHQW/VEmnxEzySrRCCJP6jQwrR3XUbKslaoPCaMeq VVEvT8n7hD+JwbTMPu+mlYrIu8C243Su4rizo592EskxoO8JRe1Bo32Ot/9QaGoY /Rmxc0mhVHNDkwSayanC07tnVfFaD0EpegGEC1F4AnJxJAvLqldA43gZiW8w+nTV s4g7/xlcgND7l6UG+TmfXAWBsq6MD5u2wc+3ciXod/tKg1XVcpjW+7xR+pcuteRG 0MCZBJAjpFaV8x38oL8X+W389Cmf9on+woayn0LvK2i9wzRrsio= =yeKI -----END PGP SIGNATURE----- --I2ZieoTdU7lxMRHg--