From 548512ad0397b1e6fe1b079496882b924bbdd745 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 10 Aug 2001 23:49:20 +0000 Subject: [PATCH] Document column-name-list option of CREATE VIEW ... which has been there awhile, but the man page didn't know it. --- doc/src/sgml/ref/create_view.sgml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) 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. -- 2.40.0