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: Fix interference between cavering indexes and partitioned tables
Date: Wed, 11 Apr 2018 13:44:50 +0000
Message-ID: <E1f6G3O-0002WZ-TV@gemulon.postgresql.org> (raw)

Fix interference between cavering indexes and partitioned tables

The bug is caused due to the original IndexStmt that DefineIndex receives
being overwritten when processing the INCLUDE columns. Use separate list of
index params to propagate to child tables. Add tests covering this case.

Amit Langote and Alexander Korotkov.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5c6110c6a960ad6fe1b0d0fec6ae36ef4eb913f5

Modified Files
--------------
src/backend/commands/indexcmds.c       | 27 ++++++++++++++-------------
src/test/regress/expected/indexing.out | 24 ++++++++++++++++++++++++
src/test/regress/sql/indexing.sql      | 19 +++++++++++++++++++
3 files changed, 57 insertions(+), 13 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1f6G3O-0002WZ-TV@gemulon.postgresql.org>
Permalink:  ../E1f6G3O-0002WZ-TV@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f6G3O-0002WZ-TV@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: Fix interference between cavering indexes and partitioned tables
  In-Reply-To: <E1f6G3O-0002WZ-TV@gemulon.postgresql.org>
  References: <E1f6G3O-0002WZ-TV@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