]> granicus.if.org Git - postgresql/commitdiff
Document that WITH queries are also called Common Table Expressions.
authorRobert Haas <rhaas@postgresql.org>
Thu, 20 Jan 2011 02:15:45 +0000 (21:15 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 20 Jan 2011 02:19:53 +0000 (21:19 -0500)
Peter Geoghegan, reviewed by Stephen Frost

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

index 23ab3b410bd1fd99bb2e898c17371c1bbcb47aaa..5dad0db13780b35fb59f420443ee41807e70132c 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 f6e081ea7325b48ae07472b2a7a8e948a60f479d..693fce531f4b1497b20dd5a07269810589a6f1bd 100644 (file)
@@ -1525,7 +1525,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>
@@ -1539,7 +1539,8 @@ SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression
 
   <para>
    <literal>WITH</> provides a way to write subqueries for use in a larger
-   query.  The subqueries can be thought of as defining
+   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: