pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix crash when ALTER TABLE recreates indexes on partitions
Date: Fri, 29 Jun 2018 15:50:42 +0000
Message-ID: <E1fYvfW-0004vb-Mt@gemulon.postgresql.org> (raw)

Fix crash when ALTER TABLE recreates indexes on partitions

The skip_build flag was not being passed correctly when recursing to
indexes on partitions, leading to attempts to rebuild indexes when they
were not yet ready to be rebuilt.

Reported-by: Rajkumar Raghuwanshi
Discussion: https://postgr.es/m/CAKcux6mxNCGsgATwf5CGMF8g4WSupCXicCVMeKUTuWbyxHOMsQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/41372071dfaab97a1a8dca83e32b88413460f477

Modified Files
--------------
src/backend/commands/indexcmds.c       | 2 +-
src/test/regress/expected/indexing.out | 8 ++++++++
src/test/regress/sql/indexing.sql      | 9 +++++++++
3 files changed, 18 insertions(+), 1 deletion(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1fYvfW-0004vb-Mt@gemulon.postgresql.org>
Permalink:  ../E1fYvfW-0004vb-Mt@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fYvfW-0004vb-Mt@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Fix crash when ALTER TABLE recreates indexes on partitions
  In-Reply-To: <E1fYvfW-0004vb-Mt@gemulon.postgresql.org>
  References: <E1fYvfW-0004vb-Mt@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