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 1iXH9e-00077N-2M for pgsql-general@arkaria.postgresql.org; Wed, 20 Nov 2019 03:59:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iXH9c-0006za-KS for pgsql-general@arkaria.postgresql.org; Wed, 20 Nov 2019 03:59:44 +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 1iXH9c-0006zT-Ab for pgsql-general@lists.postgresql.org; Wed, 20 Nov 2019 03:59:44 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXH9Z-0001rF-6g for pgsql-general@lists.postgresql.org; Wed, 20 Nov 2019 03:59:43 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 6B58A61C; Tue, 19 Nov 2019 22:59:36 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 19 Nov 2019 22:59:36 -0500 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=fm3; bh=3ydNi4Axz6Xb5HFigvwktTZWieO m1WZEZIs+pLTVItk=; b=B1XIjh0SL8jDrq/ULj6svi9PhC71an2/dvo67QbnigW 31LWtDz+O/US02yJ1B4LkTLiuoelKwNN7jODX+j6fw7wCJ6FzDaLoF8qLjbRB1Bs aPzlyXwCBykI+9LYds7TVJG2PETBQj71S00QibP3io4FmTagTgIxmB7omXiVS+XL aGytyi7PLIU+NOiRWx/5vs9psJVeDuVYzbHd21a/P16UK5yKLvQUXRonVAnJRhCb RxuNABnyfM/DMBfTx3Qg1TDXHzOq39UZABVqXwkBTcxIPrZQIMIr1RUHE4T10duj 0255VJQLjQO/LxMZYu0YhmPZt3gjNoX/z5BJaZtccog== 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=fm1; bh=3ydNi4 Axz6Xb5HFigvwktTZWieOm1WZEZIs+pLTVItk=; b=LklHJ93199eGvomHgUFZ6U 5njOhpcO7WRQV1/WlLK+rFFju0dD+y2gQp2qtQW7fqfOY1hNKaw5mEoAe4sr3AWt /7K/g3jdXgNRnm6gRFfGW7YdnXoWU5as0IveSCrwUty+CBj6gNU9WUd4zrcVi4t6 tliJ2OpoOGYZzjKlTWx6ot76Xo/x8srMUP6iESoVgc+qpIMUxYmM8/dHABZksi4z oDYgQJ8/TAYckHbXSWu9MAaKuzoKidr6ci/WlYQUvkD4gN93nZJKC+nCmEj3EkG7 e6Wyleu2YA1wfQTefoPoLuxVUGmpX0QlXHf28WhxLtHz4My2j2OIYUtP94iKPnBQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudegledgieehucetufdoteggodetrfdotf 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 0CAB23060060; Tue, 19 Nov 2019 22:59:33 -0500 (EST) Date: Wed, 20 Nov 2019 12:59:30 +0900 From: Michael Paquier To: Geoff Winkless Cc: "Peter J. Holzer" , "pgsql-generallists.postgresql.org" Subject: Re: REINDEX VERBOSE unknown option Message-ID: <20191120035930.GB4243@paquier.xyz> References: <20191118064210.GD1543@paquier.xyz> <20191118114608.GE1543@paquier.xyz> <20191118222452.GA31017@hjp.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oTHb8nViIGeoXxdp" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --oTHb8nViIGeoXxdp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 19, 2019 at 11:37:04AM +0000, Geoff Winkless wrote: > It's bad enough that you have the inconsistency that REINDEX VERBOSE > requires parentheses while the more recent REINDEX CONCURRENTLY does > not (presumably to match the syntax of CREATE INDEX CONCURRENTLY), > without insisting that the user parse the difference between { and ( > in the manual (not the easiest difference to scan) before they can use > the command. The first implementations of REINDEX CONCURRENTLY used the existing grammar. There was also a discussion when the feature was close to commit about exactly that and I preferred the parenthesis option. Who won t the end? Consistency with the existing grammar for CREATE/DROP INDEX here.=20 >> How about this? >> >> * Terminals (stuff that has to be typed as shown) in bold. >> >> * Non-Terminals (stuff which has to be replaced) in italic. >> >> * Meta-characters ([, ], |, ...) in regular type. >=20 > Even if you do that you're still requiring the user to parse syntax > according to esoteric rules. I'm not sure that changing the rules > helps that much. This does not concern only the page for REINDEX. Perhaps this could be improved, but I am not sure how and particularly if changing it is worth it as many people are used to the existing way of presenting the commands synopsis as well. -- Michael --oTHb8nViIGeoXxdp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl3UuiIACgkQnvQgOdby QH1nhQ//V7E4uAtGNLDfPaEUbgHQF01R99W/KwON9y7urJxCATSO7T27tBrIKMEc AUxUb65aqmraAWujdM8Bvcu/gswbIVhFKAaD1IljGlnHNAjsAw8lYrMBkrNI5kHR uIBT9Kfl11CFMEvVIzY9O8QC01EFYzU+ajXW+LYYg5HWaVZZEcueaZyLvJFSYpPD 4Ex8lOu7FpgR8bYPosBZXSwsTVz4+7tv8sK9XIcf4N0tVxv6lBuEhBX5nSCRb4cr QFw6emRQfuqQWgSK/aPsk6VjfHeeAm9oOWZGUEfRgdmCIUz8WH72KCBEkOIgQZyl Qbha8wqS979fnm2BgqM4ZhwKhNnuGGs6vmii2ZXz5rm1KEGCiUAxioUz6d7ZV22Q Pxg/7Q0Q8UJHCVRP6o/Vw3+559PAxxSaN0Eeqm/arFbQJS8uYEU2zNB2zF7xQbKb gTQj+8UMYmsFQUZCjN9wJW4mwsLXG+YCpysF2sk25+J5nVWWvP78uGgVrtqLTfc9 dTZSctVp2wM/tBfu/w9M6eN7QacYr2ct/IbAFNnALD//jSqqKIWY+FoXg2TBgaAX znyt46ZtFN3dX0ktvOXE1uXxkKsNa27l8oStBT/0grS2WHoaOsCfEiLl7KQa2ZHj agTh+G9cfLAj4qH4NFFY+X0sPyPUkBShx66wF2o+yDfhsRQxK4Q= =51oA -----END PGP SIGNATURE----- --oTHb8nViIGeoXxdp--