Commit c10fae21 authored by Bruce Momjian's avatar Bruce Momjian

docs: clarify that only INSERT and UPDATE triggers can mod. NEW

The point is that DELETE triggers cannot modify any values.

Reported-by: Eugen Konkov

Discussion: https://postgr.es/m/919823407.20191029175436@yandex.ru

Backpatch-through: 9.4
parent c8cb98ec
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
used to signal that the trigger performed the necessary data used to signal that the trigger performed the necessary data
modifications in the view. This will cause the count of the number modifications in the view. This will cause the count of the number
of rows affected by the command to be incremented. For of rows affected by the command to be incremented. For
<command>INSERT</command> and <command>UPDATE</command> operations, the trigger <command>INSERT</command> and <command>UPDATE</command> operations only, the trigger
may modify the <varname>NEW</varname> row before returning it. This will may modify the <varname>NEW</varname> row before returning it. This will
change the data returned by change the data returned by
<command>INSERT RETURNING</command> or <command>UPDATE RETURNING</command>, <command>INSERT RETURNING</command> or <command>UPDATE RETURNING</command>,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment