Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aRMMe-0007yl-IY for pgsql-sql@arkaria.postgresql.org; Thu, 04 Feb 2016 16:02:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aRMMe-00051K-1f for pgsql-sql@arkaria.postgresql.org; Thu, 04 Feb 2016 16:02:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aRMLe-0002mY-3J; Thu, 04 Feb 2016 16:01:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aRMLX-0005vA-EE; Thu, 04 Feb 2016 16:01:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u14G1JeC017542; Thu, 4 Feb 2016 11:01:19 -0500 From: Tom Lane To: Karsten Hilbert cc: pgsql-sql@postgresql.org, pgsql-general Subject: Re: [GENERAL] Q: documentation bug ? In-reply-to: <20160204110532.GG22591@hermes.hilbert.loc> References: <20160204105318.GD22591@hermes.hilbert.loc> <56B32F5D.5090009@2ndquadrant.fr> <20160204110532.GG22591@hermes.hilbert.loc> Comments: In-reply-to Karsten Hilbert message dated "Thu, 04 Feb 2016 12:05:32 +0100" Date: Thu, 04 Feb 2016 11:01:19 -0500 Message-ID: <17541.1454601679@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Karsten Hilbert writes: > On Thu, Feb 04, 2016 at 12:00:45PM +0100, Vik Fearing wrote: >>> REINDEX [ ( { VERBOSE } [, ...] ) ] { INDEX | TABLE | SCHEMA | DATABASE | SYSTEM } name >>> Does this constitute a bug in the documentation or in the Debian version of PG ? >> Neither. It's a little bit obscure because {} and [] mean special >> things, but () doesn't. > Eagle-eyed ! Seems to me the syntax BNF here is bringing the problem on itself by using { ... } when in fact only one alternative is available. I don't find { FOO | BAR } especially hard to read, but { FOO } is confusing because you expect the {}'s to mean something and they really do not. I'd be inclined to reduce this to REINDEX [ ( VERBOSE ) ] { INDEX | TABLE | SCHEMA | DATABASE | SYSTEM } name We can put back the extra decoration when and if a second option arrives. regards, tom lane -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql