Document column-name-list option of CREATE VIEW ... which has been there
authorTom Lane
Fri, 10 Aug 2001 23:49:20 +0000 (23:49 +0000)
committerTom Lane
Fri, 10 Aug 2001 23:49:20 +0000 (23:49 +0000)
awhile, but the man page didn't know it.

doc/src/sgml/ref/create_view.sgml

index 8132e41d425368b366448aa1f44e094f239cecc3..f13dee1dd425d702c39f65482c829bacc644b791 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -23,7 +23,8 @@ Postgres documentation
    2000-03-25
   
   
-CREATE VIEW view AS SELECT query
+CREATE VIEW view [ ( 
+class="PARAMETER">column name list ) ] AS SELECT query
   
 
   
@@ -44,6 +45,16 @@ CREATE VIEW view AS SELECT 
        
       
      
+     
+      column name list
+      
+       
+        An optional list of names to be used for columns of the view.
+   If given, these names override the column names that would be
+   deduced from the SQL query.
+       
+      
+     
      
       query
       
@@ -124,7 +135,7 @@ CREATE VIEW vista AS SELECT text 'Hello World'
   
   
    CREATE VIEW will define a view of a table.
-   This view is not physically materialized. Specifically, a query
+   The view is not physically materialized. Instead, a query
    rewrite retrieve rule is automatically generated to support
    retrieve operations on views.