]> granicus.if.org Git - postgresql/commit
Enable failure to rename a partitioned index
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 26 Jun 2018 15:28:41 +0000 (11:28 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 26 Jun 2018 15:54:45 +0000 (11:54 -0400)
commit040da42367a5de448ddecf6ee7c09f73580a6b28
tree76a8fe86558ff50eac3ca266fd7727bf174734ee
parentbbbbc2f8f3f7d628c74317959a2cfe71fea05575
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
src/backend/catalog/objectaddress.c
src/test/regress/expected/alter_table.out
src/test/regress/expected/object_address.out
src/test/regress/sql/alter_table.sql
src/test/regress/sql/object_address.sql