Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hV4o9-0003iz-Kh for pgsql-hackers@arkaria.postgresql.org; Mon, 27 May 2019 01:52:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hV4o8-0002eU-6K for pgsql-hackers@arkaria.postgresql.org; Mon, 27 May 2019 01:52:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hV4o7-0002eN-Tv for pgsql-hackers@lists.postgresql.org; Mon, 27 May 2019 01:52:11 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hV4o5-00007s-Tc for pgsql-hackers@postgresql.org; Mon, 27 May 2019 01:52:11 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id AD7BD207FD; Sun, 26 May 2019 21:52:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 26 May 2019 21:52:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=YDsSaixVc7Whu4l4RDiVujQn62S bMFVfabTIzfo2Dbo=; b=bgoi4E/LuJ9eLUKOs4YC3IhyKkOL0vkK9yc+FinSLi2 bzqAfGgI5hTb7AgRIXxKQNZ3ER55xH638NU3kWn9GTvECKYQ55jY9YQMQUpOWbHk FnafcVyyadH002nSe5VqfX+cKWt1Biw+0zCTvPsSiB+EUe1KPcqrsBvS+WxUaC8u rCNMMJ+oM0qgz3Rx3GvGoKladef6crraKFWfZVNSdSuJZl2FisXwE4/9HhS62Wow qpFFM1aQGAhpmUXNu77ArBqL/o7wjTE8n7M0wl2RviRqtAIooy4+I9XRVkOOiSsZ 6cIZkZoY0BczdM34DqwPqQlotNShkz2TM/FlTXgGYLg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=YDsSai xVc7Whu4l4RDiVujQn62SbMFVfabTIzfo2Dbo=; b=cWs8wJI2zVdRbWtmo26EaE Ry2+iW8v26i2iDxVt5o4mNC9ae7aiBFWyEoRB3Ben0QuQCNUja2CcSjrpL+X1ZXb wyxbmUf0Ei+If5Ei/IO6PsxAautxDbnsKZFfETXZBK6EE5g1RfZFG26zuEfLxEb5 tARAWJEBtLGrf9b41HOH9c8v/Ut8Gcp6dptJOO3W3xWmJkJMdyFym5m4PZ3BiH6v qQJezP/Mts7j9hu6M5N9tZNZTfLg1Nvfby81bQy9TvZwdGa8BA9wSeS+pPUCPZa6 KGXsm155pzUdnF88fGbL9BlbOT6COUSFMqcLMBPmVxff/DhL3bwUK/V2NpWd7sMw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddvuddggeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucfkphepudduuddruddtvddrudektddrudekheenucfrrghr rghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlh hushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 1240A380083; Sun, 26 May 2019 21:52:06 -0400 (EDT) Date: Mon, 27 May 2019 10:52:04 +0900 From: Michael Paquier To: Fabien COELHO Cc: Peter Eisentraut , pgsql-hackers Subject: Re: Why does pg_checksums -r not have a long option? Message-ID: <20190527015204.GC1963@paquier.xyz> References: <97045260-fb9e-e145-a950-cf7d28c4eaea@2ndquadrant.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cHMo6Wbp1wrKhbfi" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --cHMo6Wbp1wrKhbfi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, May 26, 2019 at 08:35:30AM +0200, Fabien COELHO wrote: > Probably? Attached a patch. No objections with adding a long option for that stuff. But I do have an objection with the naming because we have another tool able to work on relfilenodes: $ oid2name --help | grep FILE -f, --filenode=FILENODE show info for table with given file node In this case, long options are new as of 1aaf532 which is recent, but -f is around for a much longer time. Perhaps we should use the same mapping for consistency? pg_verify_checksums has been using -r for whatever reason, but as we do a renaming of the binary for v12 we could just fix that inconsistency as well. Hence I would suggest that for the option description: "-f, --filenode=FILENODE" I would also switch to the long option name in the tests at the same time, this makes the perl scripts easier to follow. -- Michael --cHMo6Wbp1wrKhbfi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlzrQsQACgkQnvQgOdby QH3gJRAAk2groOuzVCODKMIcTOZdkSKKAGygeC3ulJg/5aVwOozua93mANQquFbr XUfUCGsamvMPG3cgt1PxG3ZBd0HEKJAjge4gFeqTLS0JqDSuU1I2tCkZN4yY1WlT aLkSL4gvGlwSTEcmC3WvJL9XHIsDP+H9qsQ3VY4PRiQ5ggc046w94KlXE1uPo+SX XFE2qR0F3905/FxstHfkLgC5oLo4TVa4Ft8c6LsnKn2kK6ZdFzC0KXKKmymgKF9u SLb4GynHTJY8QAZ/sMfU73HB/+Pjw3oozIlkqgIV+I6o6YbR/rVc8nRrJYJd0f6D rFXblGfW5ccUcEkNmQRaaaZl+gBZacKVCA2yr0EH5CV+vIq9qij9V33ZfmUPwpVR sByxHi6fy88lp1vtm0ykh59wfDnsTLQmuC92Mib6DA1+N+itUdwI9GLFirmoPR7x Nza4sbTYLES6zUdYnJ/04CtkrOqWkHuKE+RCOh7e2CdfGqceXvq6zZOlQyrzaFkY naKTGQs/kysj0E0LP4HDjjrjX1unUh2ZzKlj7cop6dv1wtV2w5RsnMPba5CWk6VU AoyfBE6hs9lrJ4LO6Y2fT+DIM3tkfIk0EEWSvfFYhyxAMk/ZjNKS7yc92Z/12yhz e/xcTs+jzl6lR9COkchqS53+FEWrUb5pGBE+CrQ1SN/lbsDr1/A= =NtNb -----END PGP SIGNATURE----- --cHMo6Wbp1wrKhbfi--