Make the world at least somewhat safe for zero-column tables, and
Tom Lane <tgl@sss.pgh.pa.us>
Make the world at least somewhat safe for zero-column tables, and remove the special case in ALTER DROP COLUMN to prohibit dropping a table's last column.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/common/tupdesc.c | modified | +39 −26 |
| src/backend/commands/tablecmds.c | modified | +3 −26 |
| src/backend/executor/execTuples.c | modified | +5 −12 |
| src/backend/executor/nodeAgg.c | modified | +11 −11 |
| src/backend/parser/parse_target.c | modified | +4 −2 |
| src/test/regress/expected/alter_table.out | modified | +2 −4 |