11<!--
2- $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_view.sgml,v 1.10 2001/01/13 23:58:55 petere Exp $
2+ $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_view.sgml,v 1.11 2001/08/10 23:49:20 tgl Exp $
33Postgres documentation
44-->
55
@@ -23,7 +23,8 @@ Postgres documentation
2323 <date>2000-03-25</date>
2424 </refsynopsisdivinfo>
2525 <synopsis>
26- CREATE VIEW <replaceable class="PARAMETER">view</replaceable> AS SELECT <replaceable class="PARAMETER">query</replaceable>
26+ CREATE VIEW <replaceable class="PARAMETER">view</replaceable> [ ( <replaceable
27+ class="PARAMETER">column name list</replaceable> ) ] AS SELECT <replaceable class="PARAMETER">query</replaceable>
2728 </synopsis>
2829
2930 <refsect2 id="R2-SQL-CREATEVIEW-1">
@@ -44,6 +45,16 @@ CREATE VIEW <replaceable class="PARAMETER">view</replaceable> AS SELECT <replace
4445 </para>
4546 </listitem>
4647 </varlistentry>
48+ <varlistentry>
49+ <term><replaceable class="parameter">column name list</replaceable></term>
50+ <listitem>
51+ <para>
52+ An optional list of names to be used for columns of the view.
53+ If given, these names override the column names that would be
54+ deduced from the SQL query.
55+ </para>
56+ </listitem>
57+ </varlistentry>
4758 <varlistentry>
4859 <term><replaceable class="parameter">query</replaceable></term>
4960 <listitem>
@@ -124,7 +135,7 @@ CREATE VIEW vista AS SELECT text 'Hello World'
124135 </title>
125136 <para>
126137 <command>CREATE VIEW</command> will define a view of a table.
127- This view is not physically materialized.Specifically , a query
138+ The view is not physically materialized.Instead , a query
128139 rewrite retrieve rule is automatically generated to support
129140 retrieve operations on views.
130141 </para>