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: Enable failure to rename a partitioned index
Date: Tue, 26 Jun 2018 15:56:40 +0000
Message-ID: <E1fXqKe-00075f-9l@gemulon.postgresql.org> (raw)

Enable failure to rename a partitioned index

Concurrently with partitioned index development (commit 8b08f7d4820f),
the code to handle failure to rename indexes was refactored (commit
8b9e9644dc6a).  Turns out that that particular case was untested, which
naturally led it to be broken.  Add tests and the missing code line.

Co-authored-by: David Rowley <dgrowley@gmail.com>
Co-authored-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reported-by: Rajkumar Raghuwanshi <rajkumar.raghuwanshi@enterprisedb.com>
Discussion: https://postgr.es/m/CAKcux6mfYMS3OX0ywjOiWiGSEKhJf-1zdeTceHFbd0mScUzU5A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/040da42367a5de448ddecf6ee7c09f73580a6b28

Modified Files
--------------
src/backend/catalog/objectaddress.c          |  1 +
src/test/regress/expected/alter_table.out    | 18 ++++++++++++++++++
src/test/regress/expected/object_address.out | 11 +++++++++--
src/test/regress/sql/alter_table.sql         | 15 +++++++++++++++
src/test/regress/sql/object_address.sql      |  5 +++++
5 files changed, 48 insertions(+), 2 deletions(-)



Message-ID: <E1fXqKe-00075f-9l@gemulon.postgresql.org>
Permalink:  ../E1fXqKe-00075f-9l@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fXqKe-00075f-9l@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: Enable failure to rename a partitioned index
  In-Reply-To: <E1fXqKe-00075f-9l@gemulon.postgresql.org>
  References: <E1fXqKe-00075f-9l@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