File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -106,10 +106,11 @@ MERGE INTO [ ONLY ] <replaceable class="parameter">target_table_name</replaceabl
106
106
to compute and return value(s) based on each row inserted, updated, or
107
107
deleted. Any expression using the source or target table's columns, or
108
108
the <link linkend="merge-action"><function>merge_action()</function></link>
109
- function can be computed. When an <command>INSERT</command> or
109
+ function can be computed. By default, when an <command>INSERT</command> or
110
110
<command>UPDATE</command> action is performed, the new values of the target
111
- table's columns are used. When a <command>DELETE</command> is performed,
112
- the old values of the target table's columns are used. The syntax of the
111
+ table's columns are used, and when a <command>DELETE</command> is performed,
112
+ the old values of the target table's columns are used, but it is also
113
+ possible to explicitly request old and new values. The syntax of the
113
114
<literal>RETURNING</literal> list is identical to that of the output list
114
115
of <command>SELECT</command>.
115
116
</para>
Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ UPDATE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ] [
57
57
to compute and return value(s) based on each row actually updated.
58
58
Any expression using the table's columns, and/or columns of other
59
59
tables mentioned in <literal>FROM</literal>, can be computed.
60
- The new (post-update) values of the table's columns are used.
60
+ By default, the new (post-update) values of the table's columns are used,
61
+ but it is also possible to request the old (pre-update) values.
61
62
The syntax of the <literal>RETURNING</literal> list is identical to that of the
62
63
output list of <command>SELECT</command>.
63
64
</para>
You can’t perform that action at this time.
0 commit comments