diff --git a/doc/src/sgml/ref/alter_table.sgml b/doc/src/sgml/ref/alter_table.sgml
index 5907a64a6b..b5be516c52 100644
--- a/doc/src/sgml/ref/alter_table.sgml
+++ b/doc/src/sgml/ref/alter_table.sgml
@@ -1,5 +1,5 @@
@@ -178,7 +178,7 @@ ALTER TABLE table
adds a new constraint to the table using the same syntax as .
The DROP CONSTRAINT constraint clause
- drops all CHECK constraints on the table (and its children) that match constraint.
+ drops all constraints on the table (and its children) that match constraint.
The OWNER clause changes the owner of the table to the user
new user.
@@ -207,15 +207,15 @@ ALTER TABLE table
new default value, using .)
-
- Currently only CHECK constraints can be dropped from a table. The RESTRICT
- keyword is required, although dependencies are not checked. The CASCADE
- option is unsupported. To remove a PRIMARY or UNIQUE constraint, drop the
- relevant index using the command.
+
+ In DROP CONSTRAINT, the RESTRICT keyword is required, although
+ dependencies are not yet checked. The CASCADE option is unsupported.
+ Currently DROP CONSTRAINT drops only CHECK constraints.
+ To remove a PRIMARY or UNIQUE constraint, drop the
+ relevant index using the command.
To remove FOREIGN KEY constraints you need to recreate
and reload the table, using other parameters to the
-
- command.
+ command.
For example, to drop all constraints on a table distributors:
@@ -277,7 +277,7 @@ ALTER TABLE distributors ADD CONSTRAINT zipchk CHECK (char_length(zipcode) = 5);
To remove a check constraint from a table and all its children:
-ALTER TABLE distributors DROP CONSTRAINT zipchk;
+ALTER TABLE distributors DROP CONSTRAINT zipchk RESTRICT;