Enhanced the allowed constraint syntax, so remove mention of the problem.
authorThomas G. Lockhart
Mon, 17 Aug 1998 16:15:31 +0000 (16:15 +0000)
committerThomas G. Lockhart
Mon, 17 Aug 1998 16:15:31 +0000 (16:15 +0000)
doc/src/sgml/ref/create_table.sgml

index 6358ba9b7cad9db0239692e259ae5bbfacd2f2e1..7e45e75b251b4a3747912d6e6c98196838234fe7 100644 (file)
      The CHECK constraint specifies a rule that a group of one or
      more columns of a table may contain only those values allowed by
      the rule.
-    
-    
      The CHECK constraint is either a table constraint or a column
      constraint.
     
     
      PostgreSQL automatically creates an unique index to assure
-     data integrity. (See CREATE INDEX statement)
-    
-    
+     data integrity (See CREATE INDEX statement).
      The SQL92 CHECK column constraints can only be defined on, and
      refer to, one column of the table. PostgreSQL does not have
      this restriction.
     
    
-   
-    BUGS in CHECK constraint
-    
-     The following CHECK constraints gives a parse error like:
-     
-      ERROR:  parser: parse error at or near "opname":
-     
-     
-      CHECK ( column BETWEEN 'A' AND 'Z' )
-      CHECK ( column IN ('A','Z'))
-      CHECK ( column NOT LIKE 'A%')
-     
-    
-   
   
   
   
     
    
 Temporary tables are not currently available in Postgres.
+
    
-    TIP: In the current release of Postgres (v6.3.2), to create a temporary
+    In the current release of Postgres (v6.4), to create a temporary
     table you must create and drop the table by explicit commands.
-   >
+>
    
    
     
@@ -1067,6 +1050,13 @@ Temporary tables are not currently available in Postgres
     
    
    
+
    
    
     
@@ -1096,7 +1086,7 @@ Temporary tables are not currently available in Postgres
     
     
      SQL92 specifies some additional capabilities for CONSTRAINTs,
-     it also defines assertions and domain constraints.
+     and also defines assertions and domain constraints.
     
     
      An assertion is a special type of integrity constraint and share
@@ -1209,12 +1199,19 @@ Temporary tables are not currently available in Postgres
      CHECK clause
     
     
-     SQL92 specifies some additional capabilities for CHECK:
+     SQL92 specifies some additional capabilities for CHECK in either
+table or column constraints.
     
+
     
      table constraint definition:
     
@@ -1233,6 +1230,7 @@ Temporary tables are not currently available in Postgres
       [ {INITIALLY DEFERRED | INITIALLY IMMEDIATE} ]
       [ [ NOT ] DEFERRABLE ]
     
+