pgsql/ oc/src/sgml/ref/alter_table.sgml rc/bac ...
pgsql/ oc/src/sgml/ref/alter_table.sgml rc/bac ...
От:
tgl@postgresql.org
Дата:
CVSROOT: /cvsroot Module name: pgsql Changes by: tgl@postgresql.org 01/10/11 20:07:15 Modified files: doc/src/sgml/ref: alter_table.sgml src/backend/catalog: pg_type.c src/backend/commands: command.c src/backend/parser: analyze.c src/backend/tcop: utility.c src/include/commands: command.h src/include/nodes: parsenodes.h src/test/regress/expected: alter_table.out foreign_key.out Log message: Break transformCreateStmt() into multiple routines and make transformAlterStmt() use these routines, instead of having lots of duplicate (not to mention should-have-been-duplicate) code. Adding a column with a CHECK constraint actually works now, and the tests to reject unsupported DEFAULT and NOT NULL clauses actually fire now. ALTER TABLE ADD PRIMARY KEY works, modulo having to have created the column(s) NOT NULL already.