pgsql: Fix handling of inherited check constraints in ALTER COLUMN TYPE
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Fix handling of inherited check constraints in ALTER COLUMN TYPE |
| Дата | |
| Msg-id | E1TVRXl-0006rv-QP@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Fix handling of inherited check constraints in ALTER COLUMN TYPE. This case got broken in 8.4 by the addition of an error check that complains if ALTER TABLE ONLY is used on a table that has children. We do use ONLY for this situation, but it's okay because the necessary recursion occurs at a higher level. So we need to have a separate flag to suppress recursion without making the error check. Reported and patched by Pavan Deolasee, with some editorial adjustments by me. Back-patch to 8.4, since this is a regression of functionality that worked in earlier branches. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/329057fd8f967d08190cd355333430c604418d81 Modified Files -------------- src/backend/commands/tablecmds.c | 43 ++++++++++++++++++++++------- src/include/nodes/parsenodes.h | 4 ++- src/test/regress/expected/alter_table.out | 22 +++++++++++++++ src/test/regress/sql/alter_table.sql | 7 +++++ 4 files changed, 65 insertions(+), 11 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера