Move autogenerated array types out of the way during ALTER ... RENAME. Commit 9aa3c782c added code to allow CREATE TABLE/CREATE TYPE to not fail when the desired type name conflicts with an autogenerated array type, by dint of renaming the array type out of the way. But I (tgl) overlooked that the same case arises in ALTER TABLE/TYPE RENAME. Fix that too. Back-patch to all supported branches. Report and patch by Vik Fearing, modified a bit by me Discussion: https://postgr.es/m/0f4ade49-4f0b-a9a3-c120-7589f01d1eb8@2ndquadrant.com Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8f62b388b5c946cc1c6e5c1c6fd5cff0865b46a9 Modified Files -------------- src/backend/catalog/pg_type.c | 38 ++++++++++++++++++------ src/test/regress/expected/alter_table.out | 49 +++++++++++++++++++++++++++++++ src/test/regress/sql/alter_table.sql | 20 +++++++++++++ 3 files changed, 98 insertions(+), 9 deletions(-)
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера