From: Tom Lane Date: Fri, 10 Aug 2001 23:49:20 +0000 (+0000) Subject: Document column-name-list option of CREATE VIEW ... which has been there X-Git-Tag: REL7_2_BETA1~717 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=548512ad0397b1e6fe1b079496882b924bbdd745;p=postgresql Document column-name-list option of CREATE VIEW ... which has been there awhile, but the man page didn't know it. --- diff --git a/doc/src/sgml/ref/create_view.sgml b/doc/src/sgml/ref/create_view.sgml index 8132e41d42..f13dee1dd4 100644 --- a/doc/src/sgml/ref/create_view.sgml +++ b/doc/src/sgml/ref/create_view.sgml @@ -1,5 +1,5 @@ @@ -23,7 +23,8 @@ Postgres documentation 2000-03-25 -CREATE VIEW view AS SELECT query +CREATE VIEW view [ ( 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.