Enable failure to rename a partitioned index

Enterprise / PostgreSQL - Alvaro Herrera [alvh.no-ip.org] - 26 June 2018 15:54 EDT

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.

040da42367 Enable failure to rename a partitioned index
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(-)

Upstream: git.postgresql.org


  • Share