mirror of
https://github.com/postgres/postgres.git
synced 2025-05-21 15:54:08 +03:00
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
This commit is contained in:
parent
831ca9513c
commit
5292570ba1
@ -207,7 +207,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</> and <command>UPDATE</> operations, the trigger
|
<command>INSERT</> and <command>UPDATE</> operations only, the trigger
|
||||||
may modify the <varname>NEW</> row before returning it. This will
|
may modify the <varname>NEW</> row before returning it. This will
|
||||||
change the data returned by
|
change the data returned by
|
||||||
<command>INSERT RETURNING</> or <command>UPDATE RETURNING</>,
|
<command>INSERT RETURNING</> or <command>UPDATE RETURNING</>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user