pgsql: Enable failure to rename a partitioned index

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Enable failure to rename a partitioned index
Date: 2018-06-26 15:56:40
Message-ID: E1fXqKe-00075f-9l@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)com>
Co-authored-by: Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Reported-by: Rajkumar Raghuwanshi <rajkumar(dot)raghuwanshi(at)enterprisedb(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-06-26 16:00:29 Re: pgsql: Increase upper limit for vacuum_cleanup_index_scale_factor
Previous Message Fujii Masao 2018-06-26 15:54:33 pgsql: Fix documentation bug related to backup history file.