Allow ALTER TYPE .. ADD ATTRIBUTE .. CASCADE to recurse to descendants.
Robert Haas <rhaas@postgresql.org>
Allow ALTER TYPE .. ADD ATTRIBUTE .. CASCADE to recurse to descendants. Without this, adding an attribute to a typed table with an inheritance child fails, which is surprising. Noah Misch, with minor changes by me.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/alter_type.sgml | modified | +1 −1 |
| src/backend/commands/tablecmds.c | modified | +3 −2 |
| src/test/regress/expected/alter_table.out | modified | +15 −0 |
| src/test/regress/sql/alter_table.sql | modified | +4 −0 |