Document that WITH queries are also called Common Table Expressions.
authorRobert Haas
Thu, 20 Jan 2011 02:15:45 +0000 (21:15 -0500)
committerRobert Haas
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)
     
    
 
+   
+    CTE
+    
+     
+      Common Table Expression
+     
+    
+   
+
    
     CVE
     
index f6e081ea7325b48ae07472b2a7a8e948a60f479d..693fce531f4b1497b20dd5a07269810589a6f1bd 100644 (file)
@@ -1525,7 +1525,7 @@ SELECT select_list FROM table_expression
 
 
  
-  <literal>WITH</literal> Queries
+  <literal>WITH</literal> Queries<span class="marked"> (Common Table Expressions)</span>
 
   
    WITH
@@ -1539,7 +1539,8 @@ SELECT select_list FROM table_expression
 
   
    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 CTEs, 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: