1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-28 18:48:04 +03:00

Doc: add a section in Part II concerning RETURNING.

There are assorted references to RETURNING in Part II, but nothing
that would qualify as an explanation of the feature, which seems
like an oversight considering how useful it is.  Add something.

Noted while looking for a place to point a cross-reference to ...
This commit is contained in:
Tom Lane
2016-11-22 14:02:52 -05:00
parent e2a0ee6900
commit 1c7861e81b
2 changed files with 101 additions and 1 deletions

View File

@@ -2262,7 +2262,8 @@ SELECT * FROM moved_rows;
<para>
Data-modifying statements in <literal>WITH</> usually have
<literal>RETURNING</> clauses, as seen in the example above.
<literal>RETURNING</> clauses (see <xref linkend="dml-returning">),
as shown in the example above.
It is the output of the <literal>RETURNING</> clause, <emphasis>not</> the
target table of the data-modifying statement, that forms the temporary
table that can be referred to by the rest of the query. If a