diff --git a/doc/src/sgml/ref/create_view.sgml b/doc/src/sgml/ref/create_view.sgml index 8132e41d425..f13dee1dd42 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.