Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWwHu-000750-Pu for pgsql-docs@arkaria.postgresql.org; Thu, 04 Jan 2018 03:33:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWwHt-0001ny-Nc for pgsql-docs@arkaria.postgresql.org; Thu, 04 Jan 2018 03:33:49 +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_2) (envelope-from ) id 1eWwHt-0001no-FP for pgsql-docs@lists.postgresql.org; Thu, 04 Jan 2018 03:33:49 +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.89) (envelope-from ) id 1eWwHm-0004iO-79 for pgsql-docs@postgresql.org; Thu, 04 Jan 2018 03:33:48 +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 w043XdVq013731; Wed, 3 Jan 2018 22:33:39 -0500 From: Tom Lane To: rirans@comcast.net cc: pgsql-docs@postgresql.org Subject: Re: doc has self referential definition In-reply-to: <20180104025808.10228.33104@wrigleys.postgresql.org> References: <20180104025808.10228.33104@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Doc_comments_form?= message dated "Thu, 04 Jan 2018 02:58:08 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13729.1515036819.1@sss.pgh.pa.us> Date: Wed, 03 Jan 2018 22:33:39 -0500 Message-ID: <13730.1515036819@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Doc_comments_form?= writes: > https://www.postgresql.org/docs/9.6/static/sql-select.html > The last line for breaks the group. There should be something > like: > > > > (with better naming). Hm, I can't get excited about it. You're correct that the grammar as stated is ambiguous, and if we introduced another level of nonterminal we could make it reflect the left-to-right precedence of join operators ... but I think 99% of our users would just find it more confusing that way. The existing statement in the text that "In the absence of parentheses, JOINs nest left-to-right" is probably clearer to most people than a formal grammar for it would be. (Heck, even our actual bison grammar file relies on precedence to define this behavior, rather than an extra nonterminal ... and you can't get much nerdier than a bison grammar.) regards, tom lane