Repair erroneous ALTER DROP CONSTRAINT example.
authorTom Lane
Sat, 10 Nov 2001 20:13:37 +0000 (20:13 +0000)
committerTom Lane
Sat, 10 Nov 2001 20:13:37 +0000 (20:13 +0000)
doc/src/sgml/ref/alter_table.sgml

index 5907a64a6b0cff613023bdf87dd6c19bc7432bb7..b5be516c52ec4312adbdd7165a31b0b126d1dd14 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -178,7 +178,7 @@ ALTER TABLE table
    adds a new constraint to the table using the same syntax as 
    linkend="SQL-CREATETABLE">. 
    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;