Index: alter_table.sgml =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/doc/src/sgml/ref/alter_table.sgml,v retrieving revision 1.23 diff -c -r1.23 alter_table.sgml *** alter_table.sgml 2001/05/07 00:43:15 1.23 --- alter_table.sgml 2001/05/09 06:59:46 *************** *** 207,219 **** ! In the current implementation, only FOREIGN KEY constraints can be added to a table. To create or remove a unique constraint, create a unique index (see ). To add check constraints ! you need to recreate and reload the table, using other ! parameters to the command. --- 207,216 ---- ! In the current implementation, only FOREIGN KEY and CHECK constraints can be added to a table. To create or remove a unique constraint, create a unique index (see ). *************** *** 253,258 **** --- 250,262 ---- To rename an existing table: ALTER TABLE distributors RENAME TO suppliers; + + + + + To add a check constraint to a table: + + ALTER TABLE distributors ADD CONSTRAINT zipchk CHECK (char_length(zipcode) = 5)