Document that WITH queries are also called Common Table Expressions.
authorRobert Haas <[email protected]>
Thu, 20 Jan 2011 02:21:33 +0000 (21:21 -0500)
committerRobert Haas <[email protected]>
Thu, 20 Jan 2011 02:21:51 +0000 (21:21 -0500)
Peter Geoghegan, reviewed by Stephen Frost

doc/src/sgml/acronyms.sgml
doc/src/sgml/queries.sgml

index 64efd323955c3d2349b348256daa6787afd329fb..0e2b1bcc35d04f13f5806d8d614b51087f8c601e 100644 (file)
     </listitem>
    </varlistentry>
 
+   <varlistentry>
+    <term><acronym>CTE</acronym></term>
+    <listitem>
+     <para>
+      <link linkend="queries-with">Common Table Expression</link>
+     </para>
+    </listitem>
+   </varlistentry>
+
    <varlistentry>
     <term><acronym>CVE</acronym></term>
     <listitem>
index 21a3a8d1a6c1061586f54c2bac8eca0be425ddbf..e54de756dc574949241775bdf8e5ff3140bdd142 100644 (file)
@@ -1526,7 +1526,7 @@ SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression
 
 
  <sect1 id="queries-with">
-  <title><literal>WITH</literal> Queries</title>
+  <title><literal>WITH</literal> Queries (Common Table Expressions)</title>
 
   <indexterm zone="queries-with">
    <primary>WITH</primary>
@@ -1540,7 +1540,8 @@ SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression
 
   <para>
    <literal>WITH</> provides a way to write subqueries for use in a larger
-   <literal>SELECT</> query.  The subqueries can be thought of as defining
+   <literal>SELECT</> query.  The subqueries, which are often referred to as Common Table
+   Expressions or <acronym>CTE</acronym>s, can be thought of as defining
    temporary tables that exist just for this query.  One use of this feature
    is to break down complicated queries into simpler parts.  An example is: