Make TABLE an optional keyword, a la LOCK TABLE (gram.y fixes not yet
authorThomas G. Lockhart
Fri, 1 Oct 1999 15:24:09 +0000 (15:24 +0000)
committerThomas G. Lockhart
Fri, 1 Oct 1999 15:24:09 +0000 (15:24 +0000)
 committed, but will be within a week or two).
Actually include the reference page into the docs...

doc/src/sgml/ref/allfiles.sgml
doc/src/sgml/ref/commands.sgml
doc/src/sgml/ref/truncate.sgml

index 50e8c89490dfcb806b6a82549258b792fb53a4a2..d82a9be53f53c37414254b63e8fabb650cd8bff9 100644 (file)
@@ -1,5 +1,5 @@
 
@@ -93,6 +93,7 @@ Complete list of usable sgml source files in this directory.
 
 
 
+
 
 
 
index bc16b4cf2a9abac478e155b76fbfaacd3fa1ca55..9402b29f6ac05b51b21161f45efb3a205af33227 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -67,6 +67,7 @@ Postgres documentation
    &selectInto;
    &set;
    &show;
+   &truncate;
    &unlisten;
    &update;
    &vacuum;
index 998f826d9cf779bb31437cf31a62e4e257c3301f..0459c9292187fa9fd49471b07e14e627fd19018b 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -15,7 +15,7 @@ Postgres documentation
    TRUNCATE
   
   
-   Close a cursor
+   Empty a table
   
  
  
@@ -23,7 +23,7 @@ Postgres documentation
    1999-07-20
   
   
-TRUNCATE TABLE table
+TRUNCATE [ TABLE ] name
   
   
   
@@ -37,10 +37,10 @@ TRUNCATE TABLE table
 
     
      
-      table
+      name
       
        
-   The table name to truncate.
+   The name of the table to be truncated.
        
       
      
@@ -81,19 +81,24 @@ TRUNCATE
    Description
   
   
-   TRUNCATE quickly removes all rows from a table.
+   TRUNCATE quickly removes all rows from a
+   table. It has the same effect as an unqualified
+   DELETE but since it does not actually scan the
+   table it is faster. This is most effective on large tables.
   
-  
+
  
   </div> <div class="diff ctx">    Usage</div> <div class="diff ctx">   
   
-   Truncate the table bigtable.
-  
-  
+   Truncate the table bigtable:
+
+   
 TRUNCATE TABLE bigtable;
-  
+   
+