]> granicus.if.org Git - postgresql/commit
Break transformCreateStmt() into multiple routines and make
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 12 Oct 2001 00:07:15 +0000 (00:07 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 12 Oct 2001 00:07:15 +0000 (00:07 +0000)
commitf9e6e27c873bcf50fdc20f5a28c5bede66d18f25
treef6514d7b7c968982c25b00008c43289c6e2df1e1
parente98476eb032bd4dc32ca97212b660cad0bbadef4
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.
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
src/test/regress/expected/foreign_key.out