@@ -214,7 +214,7 @@ TABLE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ]
214214 subqueries that can be referenced by name in the primary query.
215215 The subqueries effectively act as temporary tables or views
216216 for the duration of the primary query.
217- Each subquery can be a <command>SELECT</command>, <command>VALUES</command>,
217+ Each subquery can be a <command>SELECT</command>, <command>TABLE</>, <command> VALUES</command>,
218218 <command>INSERT</command>, <command>UPDATE</command> or
219219 <command>DELETE</command> statement.
220220 When writing a data-modifying statement (<command>INSERT</command>,
@@ -1489,12 +1489,17 @@ SELECT * FROM (SELECT * FROM mytable FOR UPDATE) ss ORDER BY column1;
14891489<programlisting>
14901490TABLE <replaceable class="parameter">name</replaceable>
14911491</programlisting>
1492- is completely equivalent to
1492+ is equivalent to
14931493<programlisting>
14941494SELECT * FROM <replaceable class="parameter">name</replaceable>
14951495</programlisting>
14961496 It can be used as a top-level command or as a space-saving syntax
1497- variant in parts of complex queries.
1497+ variant in parts of complex queries. Only the <literal>WITH</>,
1498+ <literal>UNION</>, <literal>INTERSECT</>, <literal>EXCEPT</>,
1499+ <literal>ORDER BY</>, <literal>LIMIT</>, <literal>OFFSET</>,
1500+ <literal>FETCH</> and locking clauses can be used with <command>TABLE</>;
1501+ the <literal>WHERE</> clause and any form of aggregation cannot
1502+ be used.
14981503 </para>
14991504 </refsect2>
15001505 </refsect1>
0 commit comments