From: Robert Haas Date: Thu, 20 Jan 2011 02:21:33 +0000 (-0500) Subject: Document that WITH queries are also called Common Table Expressions. X-Git-Tag: REL8_4_7~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9de3f2843c4cf695a37d04d268df350b6118a232;p=postgresql Document that WITH queries are also called Common Table Expressions. Peter Geoghegan, reviewed by Stephen Frost --- diff --git a/doc/src/sgml/acronyms.sgml b/doc/src/sgml/acronyms.sgml index 64efd32395..0e2b1bcc35 100644 --- a/doc/src/sgml/acronyms.sgml +++ b/doc/src/sgml/acronyms.sgml @@ -98,6 +98,15 @@ + + CTE + + + Common Table Expression + + + + CVE diff --git a/doc/src/sgml/queries.sgml b/doc/src/sgml/queries.sgml index 21a3a8d1a6..e54de756dc 100644 --- a/doc/src/sgml/queries.sgml +++ b/doc/src/sgml/queries.sgml @@ -1526,7 +1526,7 @@ SELECT select_list FROM table_expression - <literal>WITH</literal> Queries + <literal>WITH</literal> Queries (Common Table Expressions) WITH @@ -1540,7 +1540,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: