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

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

index 4f561f6fb764a892c516a2d548ee97110becea00..de4e1e027fe7a412d5bb4794739e77a6f41e63f4 100644 (file)
     
    
 
+   
+    CTE
+    
+     
+      Common Table Expression
+     
+    
+   
+
    
     CVE
     
index 26bc2243843356b48bd1c8241b97d71f831476c8..1e29852b40ebfea1f43859dc9e0d3343532f59a8 100644 (file)
@@ -1516,7 +1516,7 @@ SELECT select_list FROM table_expression
 
 
  
-  <literal>WITH</literal> Queries
+  <literal>WITH</literal> Queries<span class="marked"> (Common Table Expressions)</span>
 
   
    WITH
@@ -1530,7 +1530,8 @@ SELECT select_list FROM table_expression
 
   
    WITH provides a way to write subqueries for use in a larger
-   SELECT query.  The subqueries can be thought of as defining
+   SELECT 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: