Add ALTER TYPE ... ADD/DROP/ALTER/RENAME ATTRIBUTE
Peter Eisentraut <peter_e@gmx.net>
Add ALTER TYPE ... ADD/DROP/ALTER/RENAME ATTRIBUTE Like with tables, this also requires allowing the existence of composite types with zero attributes. reviewed by KaiGai Kohei
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/alter_type.sgml | modified | +126 −4 |
| doc/src/sgml/ref/create_type.sgml | modified | +15 −7 |
| doc/src/sgml/ref/drop_type.sgml | modified | +2 −2 |
| src/backend/commands/alter.c | modified | +2 −0 |
| src/backend/commands/tablecmds.c | modified | +173 −84 |
| src/backend/commands/typecmds.c | modified | +0 −5 |
| src/backend/parser/gram.y | modified | +131 −34 |
| src/backend/parser/parse_utilcmd.c | modified | +3 −0 |
| src/backend/tcop/utility.c | modified | +4 −0 |
| src/bin/pg_dump/pg_dump.c | modified | +3 −9 |
| src/bin/psql/tab-complete.c | modified | +32 −2 |
| src/include/nodes/parsenodes.h | modified | +1 −0 |
| src/include/parser/kwlist.h | modified | +1 −0 |
| src/test/regress/expected/alter_table.out | modified | +88 −1 |
| src/test/regress/sql/alter_table.sql | modified | +55 −0 |