pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Cleanup covering infrastructure
Date: Thu, 12 Apr 2018 13:38:11 +0000
Message-ID: <E1f6cQV-00064h-Pp@gemulon.postgresql.org> (raw)

Cleanup covering infrastructure

- Explicitly forbids opclass, collation and indoptions (like DESC/ASC etc) for
  including columns. Throw an error if user points that.
- Truncated storage arrays for such attributes to store only key atrributes,
  added assertion checks.
- Do not check opfamily and collation for including columns in
  CompareIndexInfo()

Discussion: https://www.postgresql.org/message-id/5ee72852-3c4e-ee35-e2ed-c1d053d45c08@sigaev.ru

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c266ed31a8a3beed3533e6a78faeca78234cbd43

Modified Files
--------------
src/backend/catalog/index.c           | 22 ++++++++++++++----
src/backend/commands/indexcmds.c      | 44 +++++++++++++++++++++++++----------
src/backend/optimizer/path/indxpath.c | 40 +++++++++++++++++++++++--------
src/backend/optimizer/util/plancat.c  |  4 ++--
src/backend/parser/parse_utilcmd.c    |  3 ---
src/backend/utils/adt/ruleutils.c     |  6 ++---
src/backend/utils/adt/selfuncs.c      |  2 ++
src/backend/utils/cache/relcache.c    |  8 +++----
8 files changed, 90 insertions(+), 39 deletions(-)



Message-ID: <E1f6cQV-00064h-Pp@gemulon.postgresql.org>
Permalink:  ../E1f6cQV-00064h-Pp@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f6cQV-00064h-Pp@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: teodor@sigaev.ru
  Subject: Re: pgsql: Cleanup covering infrastructure
  In-Reply-To: <E1f6cQV-00064h-Pp@gemulon.postgresql.org>
  References: <E1f6cQV-00064h-Pp@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