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 1gP7Uu-0003co-CJ for pgsql-docs@arkaria.postgresql.org; Tue, 20 Nov 2018 14:59:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gP7Us-0006i5-FW for pgsql-docs@arkaria.postgresql.org; Tue, 20 Nov 2018 14:59:26 +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 1gP7Us-0006hx-9u for pgsql-docs@lists.postgresql.org; Tue, 20 Nov 2018 14:59:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gP7Up-0004RK-Cf for pgsql-docs@lists.postgresql.org; Tue, 20 Nov 2018 14:59:25 +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 wAKExIuQ011324; Tue, 20 Nov 2018 09:59:18 -0500 From: Tom Lane To: "Jonathan S. Katz" cc: Bruce Momjian , emilioplatzer@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: Documentation for create unique index is insuficient and (because of that) incorrect In-reply-to: <9ba37df7-156b-b983-65b5-85ed096818b9@postgresql.org> References: <154031939560.30897.14677735588262722042@wrigleys.postgresql.org> <20181120020542.GH28656@momjian.us> <9ba37df7-156b-b983-65b5-85ed096818b9@postgresql.org> Comments: In-reply-to "Jonathan S. Katz" message dated "Tue, 20 Nov 2018 09:41:56 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11322.1542725958.1@sss.pgh.pa.us> Date: Tue, 20 Nov 2018 09:59:18 -0500 Message-ID: <11323.1542725958@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Jonathan S. Katz" writes: > On 11/19/18 9:05 PM, Bruce Momjian wrote: >> On Tue, Oct 23, 2018 at 06:29:55PM +0000, PG Doc comments form wrote: >>> In https://www.postgresql.org/docs/11/static/indexes-unique.html there are >>> omited clausules >> The first URL is an example and is not intended to be the complete >> syntax. > In fairness, the "INCLUDE" clause was added, which is new to PostgreSQL > 11, so it could raise the question as to why aren't other clauses there. Yes. That was a dumb idea; the correct fix is to take that out, because it's not appropriate here. There might be room for an additional section later in the chapter that discusses INCLUDE, but we shouldn't be cluttering the discussion of fundamental concepts like unique indexes with that. regards, tom lane