pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Doc: rework introductory documentation about covering indexes.
Date: Thu, 22 Nov 2018 18:25:23 +0000
Message-ID: <E1gPtfH-0003nZ-5V@gemulon.postgresql.org> (raw)

Doc: rework introductory documentation about covering indexes.

Documenting INCLUDE in the section about unique indexes is confusing,
as complained of by Emilio Platzer.  Furthermore, it entirely failed
to explain why you might want to use the feature.  The section about
index-only scans is really the right place; it already talked about
making such things the hard way.  Rewrite that text to describe INCLUDE
as the normal way to make a covering index.

Also, move that section up a couple of places, as it now seems more
important than some of the stuff we had before it.  It still has to
be after expression and partial indexes, since otherwise some of it
would involve forward references.

Discussion: https://postgr.es/m/154031939560.30897.14677735588262722042@wrigleys.postgresql.org

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2c0791376aeda0868a646d35d95f2be42ec97170

Modified Files
--------------
doc/src/sgml/indices.sgml | 433 +++++++++++++++++++++++++++-------------------
1 file changed, 251 insertions(+), 182 deletions(-)



view thread (2+ messages)

Message-ID: <E1gPtfH-0003nZ-5V@gemulon.postgresql.org>
Permalink:  ../E1gPtfH-0003nZ-5V@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gPtfH-0003nZ-5V@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Doc: rework introductory documentation about covering indexes.
  In-Reply-To: <E1gPtfH-0003nZ-5V@gemulon.postgresql.org>
  References: <E1gPtfH-0003nZ-5V@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox