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 1gP7OW-0003K7-TD for pgsql-docs@arkaria.postgresql.org; Tue, 20 Nov 2018 14:52:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gP7OU-0001y4-1J for pgsql-docs@arkaria.postgresql.org; Tue, 20 Nov 2018 14:52:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gP7OT-0001xw-Iv for pgsql-docs@lists.postgresql.org; Tue, 20 Nov 2018 14:52:49 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gP7OQ-0005eg-7j for pgsql-docs@lists.postgresql.org; Tue, 20 Nov 2018 14:52:48 +0000 Received: by mail-qt1-x844.google.com with SMTP id n21so248502qtl.6 for ; Tue, 20 Nov 2018 06:52:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=pPXAHt9MBCq6DezvHR2gBgMKuPo3S94plnG1R0VUGTs=; b=q/kmAw2ZCMH1TMfz42+O6FlxozKrOp9y5hBEfHMLKiV7XRDDoAiNsqY0kI9SrjeiKM SQzeWoz7O5nymP2s1JcTSqj8AyBQ8LYvRtjLnzZgAHXHfn4wSgNbNY65mNPPnjN262k1 V9eQC351pCnlflQKJGMBk6lAF+lThWXSRDBOHhG6DAvJX8BhR1XkhaAjy6AZJst42zJ2 Q3HrHUqEwgHAHYTx1OVJVLrk/QnLbK00abw+k4uJSl+CqrsGXC7OQxkpuK08vp76SAfw GtfxRLt0lZ2kX0rQLggjT6aH3hPLiH7uWTIwbohxLn21LY/2Ee9jxQGyBLFKnhvlbZIu BNdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=pPXAHt9MBCq6DezvHR2gBgMKuPo3S94plnG1R0VUGTs=; b=UG/7A30cKaydscUc81Afb8riRWKN/MzcQsZ4TN2JfM4XrgiAbYluaMeYRmTwBBne92 gcbmtWBXD7gn0cH3sMswcmOZkM1s2Nlbq6fqY2IoUHhGpCrZqPkeBhiS1/xyzWXMxx5y wvXlwAy0WTDiUrSDdZ5lNy68vBU338c3SRj5KoiG7DbpQijkqtdQFql62/nwpe510dMS Ja54kwF+aBBFKPsk0iWr5mCMvOuiLBQeDxtAdq5t/lJsMSuXVzRxEkxOcdPTfNY2kRdp QyHfsIP3VgV/S5FzQn+MtkhbUz9xiQX+qYuKBLTsPBVknQQjJpVv9QlI1AH0ODOZHwFa gxzQ== X-Gm-Message-State: AGRZ1gLkzJefRzL2oTuTAIaXD+ixk07WBLsvrpRhvLphHHvuy6Oqposd s8n6twp5qlIBFJJ5ll6ZsE1NTQ== X-Google-Smtp-Source: AJdET5d5MQzcFH2I4a7PDvz5AFk7+sO3pSep6hX5fXjcVC9fzzo1JsBTFf6HrsX9TBbwOMeW6wHrHQ== X-Received: by 2002:ac8:2e78:: with SMTP id s53mr2156780qta.355.1542725564739; Tue, 20 Nov 2018 06:52:44 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id v10sm15428668qkb.57.2018.11.20.06.52.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Nov 2018 06:52:44 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 30C15640; Tue, 20 Nov 2018 11:52:42 -0300 (-03) Date: Tue, 20 Nov 2018 11:52:42 -0300 From: Alvaro Herrera 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 Message-ID: <20181120145242.mcvpzzb7od734p7v@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9ba37df7-156b-b983-65b5-85ed096818b9@postgresql.org> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Nov-20, Jonathan S. Katz wrote: > 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: > >> The following documentation comment has been logged on the website: > >> > >> Page: https://www.postgresql.org/docs/11/static/indexes-unique.html > >> Description: > >> > >> In https://www.postgresql.org/docs/11/static/indexes-unique.html there are > >> omited clausules > >> > >> For example WHERE clausule is omited. > >> > >> In https://www.postgresql.org/docs/11/static/sql-createindex.html you can > >> see the right sintax with all the clausules. > > > > The first URL is an example and is not intended to be the complete > > syntax. I think the OP should take a lengthier look at the whole of chapter 11 instead of looking at just one individual section within it. It's the whole chapter that should include details about other indexing features -- and indeed the WHERE clause is described in 11.8 Partial Indexes. Describing every feature within the section for every other feature would be disastrous. > 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. IMO that's actually a bug -- the INCLUDE clause should have gotten its own section in chapter 11 instead of being mentioned in the section about unique indexes. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services