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 1gPAS0-0005Kf-T9 for pgsql-docs@arkaria.postgresql.org; Tue, 20 Nov 2018 18:08:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gPARz-0008HM-4K for pgsql-docs@arkaria.postgresql.org; Tue, 20 Nov 2018 18:08:39 +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 1gPARy-0008FE-QW for pgsql-docs@lists.postgresql.org; Tue, 20 Nov 2018 18:08:38 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gPARv-0000aL-Vs for pgsql-docs@lists.postgresql.org; Tue, 20 Nov 2018 18:08:38 +0000 Received: by mail-qk1-x742.google.com with SMTP id n12so3344399qkh.11 for ; Tue, 20 Nov 2018 10:08:35 -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=2CoXT6S4Yg54TEl/4HHAlIqN/a/QPXsubtmW9RjW1fM=; b=11ZA5xkkQ13VXKKsyPjeJ3x5uATXtSoYrasvaQEK2W5YUNAKhlUTgkvmk8Qu/jGn1R 8AvovccwNHcZMYIaqjcRGcpQiyyZQ4/E2t3KAl6elmgi8vLu7q8ukmLnjvn2A0Lq+xps 8YSBZdNdshJDBJk+qKAASY1h9EAhM3tF5r1CFKGcwp9rVf/5jo5GW2dM+lxY0Hx+wnrQ 7rN+r6siK0alGzrQoTukdxYiL9yBgNlP8+6UT88s02PptZy/SY5NAd1GRgCbfkcaGR3Y Oy6QhAfk8vK9HCyb9KM9GZ4qiUFFFiGLWTEzIK2PNtYw2p/0QZnvhhCyVSal5mjcXhJl BshA== 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=2CoXT6S4Yg54TEl/4HHAlIqN/a/QPXsubtmW9RjW1fM=; b=gBsfPaxS6hQm6ln6Cg+HEcmAzLddNclecheKOUhrqI6xUikaKHGi9t/QC/99tdBorx +y5X5hA3CDMZwemTUPaAhXfvJ7OFM5o3nZZbmxeFQ1BsvrLAjKAkarcJmT2ZqRL1Qr0/ 8kqqp2NDhXiEDo0b25+NWmgS7CUXJC17yIRcHPimAfmvGm9TwnvTtwYkFBvvYUL0logO KuGWHteJ4MmRciKsN6vjVgE0E/TuiXGqrLuhLvmlen+E0iiCVbQy4sHm5lk4Hd2yBGPD eKNwKm1r7azpXx6L5EiOO9V9Wxt7HnN0mLmdEv4bsDJgSlydA55Rpi7mPHvSxFJF2okp lAPQ== X-Gm-Message-State: AA+aEWYiKkrnTT0NYzHIu3bygA202aea5W9ySXb3I9vDmD4YdWxq98Cx w6f96SM/7C2Ns5CmnzY5fZqq4A== X-Google-Smtp-Source: AFSGD/U/viUpyzoEr6bymROD5IPJi4Y0wq0UKr10nhdlpumLit5IippzKl0vULPs7H4T8vVKdqrf3A== X-Received: by 2002:ae9:f50d:: with SMTP id o13mr2798714qkg.137.1542737314298; Tue, 20 Nov 2018 10:08:34 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id w34sm23537288qtj.27.2018.11.20.10.08.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Nov 2018 10:08:33 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 0A7AE640; Tue, 20 Nov 2018 15:08:31 -0300 (-03) Date: Tue, 20 Nov 2018 15:08:31 -0300 From: Alvaro Herrera To: Tom Lane Cc: "Jonathan S. Katz" , 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: <20181120180831.frne3ck56mfdh573@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <25342.1542736665@sss.pgh.pa.us> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Nov-20, Tom Lane wrote: > So what I think I should do is reformulate that discussion to talk > about making covering indexes with INCLUDE, and then mention in > passing that you can also do it without that as long as you don't mind > the payload columns being part of the index semantics. That seems sensible. > I'm also wondering whether to move that section someplace earlier > in chapter 11. Right now it's near the end because it's mostly > info about an implementation detail; but it wouldn't be hard to > make the argument that covering indexes are more important than, > say, indexes with custom collations. Should we move it, and if > so to where? I think right next to 11.5, which currently completes the topic of how are indexes used, is a good place. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services