Document TEMP option.
authorTom Lane
Sat, 3 Mar 2001 22:11:40 +0000 (22:11 +0000)
committerTom Lane
Sat, 3 Mar 2001 22:11:40 +0000 (22:11 +0000)
doc/src/sgml/ref/create_table_as.sgml

index b3ba2802719539d5538011d2654c5416d37f7abf..a93989586acee701928cbbc236248c33c30083d4 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -20,10 +20,10 @@ Postgres documentation
  
  
   
-   1999-07-20
+   2001-03-03
   
   
-CREATE TABLE table [ (column [, ...] ) ]
+CREATE [ TEMPORARY | TEMP ] TABLE table [ (column [, ...] ) ]
      AS select_clause
   
   
@@ -37,6 +37,20 @@ CREATE TABLE table [ (column
    
    
    
+     
+      TEMPORARY or TEMP
+      
+       
+   If specified, the table is created only for this session, and is
+   automatically dropped on session exit.
+   Existing permanent tables with the same name are not visible
+   (in this session) while the temporary table exists.
+   Any indexes created on a temporary table are automatically
+   temporary as well.
+       
+      
+     
+
     
      table
      
@@ -51,7 +65,9 @@ CREATE TABLE table [ (column
       
        
    The name of a column. Multiple column names can be specified using
-   a comma-delimited list of column names.
+   a comma-delimited list of column names.  If column names are not
+   provided, they are taken from the output column names of the
+   SELECT query.
        
       
      
@@ -94,7 +110,7 @@ CREATE TABLE table [ (column
   
    CREATE TABLE AS enables a table to be created
    from the contents of an existing table.
-   It is functionality equivalent to
+   It is functionally equivalent to
    ,
    but with perhaps a more direct syntax.