Add IF NOT EXISTS processing to ALTER TABLE ADD COLUMN
Andrew Dunstan <andrew@dunslane.net>
Add IF NOT EXISTS processing to ALTER TABLE ADD COLUMN Fabrízio de Royes Mello, reviewed by Payal Singh, Alvaro Herrera and Michael Paquier.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/alter_table.sgml | modified | +5 −3 |
| src/backend/commands/tablecmds.c | modified | +37 −15 |
| src/backend/parser/gram.y | modified | +20 −0 |
| src/test/regress/expected/alter_table.out | modified | +89 −0 |
| src/test/regress/sql/alter_table.sql | modified | +31 −0 |