Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aWRhC-0000FK-Se for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Feb 2016 16:44:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aWRhC-0008RV-CQ for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Feb 2016 16:44:50 +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 1aWRhB-0008RO-NO for pgsql-bugs@postgresql.org; Thu, 18 Feb 2016 16:44:49 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aWRh8-0001jb-Kt for pgsql-bugs@postgresql.org; Thu, 18 Feb 2016 16:44:48 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [200.83.202.40]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 8C376400E57; Thu, 18 Feb 2016 08:44:45 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 530EF584; Thu, 18 Feb 2016 17:44:43 +0100 (CET) Date: Thu, 18 Feb 2016 13:44:43 -0300 From: Alvaro Herrera To: "David G. Johnston" Cc: iurii.i.popov@gmail.com, "pgsql-bugs@postgresql.org" Subject: Re: BUG #13966: Documentation. 'Select' description Message-ID: <20160218164443.GA950565@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org David G. Johnston wrote: > On Wed, Feb 17, 2016 at 8:03 AM, wrote: > > There is the description mismatch at documentation. > > > > 1. http://www.postgresql.org/docs/9.5/static/sql-select.html (SELECT) > > > > Each subquery can be a SELECT, TABLE, VALUES, INSERT, UPDATE or DELETE > > statement. > > > > 2. http://www.postgresql.org/docs/9.5/static/queries-with.html (7.8. WITH > > Queries (Common Table Expressions)) > > > > Each auxiliary statement in a WITH clause can be a SELECT, INSERT, UPDATE, > > or DELETE; > > > > Where is TABLE and VALUES? > > > While being thorough is admirable the SELECT documentation you reference > is official (and thus complete) command reference. The WITH section > referenced is more descriptive in nature and doesn't have to specify/repeat > knowledge provided elsewhere. I'm not sure I agree with your rationale. Listing some keywords but not all seems confusing -- it's easy to get the impression that the list is exhaustive. I wonder if we can say something like "any of the SELECT variants", instead of just SELECT. On the other hand, WITH itself is sometimes seen as one of the SELECT variants (in fact if you do "man WITH" you get the SELECT page, just like you do if you do "man TABLE" -- though curiously enough "man VALUES" is a different page), so that might misled people into thinking that you can put one WITH clause inside another. It seems easier to just add TABLE and VALUES to the list. BTW I think we should add generate_series() to the SEE ALSO section of the VALUES manpage. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs