Skip to content

Commit 5292570

Browse files
committed
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
1 parent 831ca95 commit 5292570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/trigger.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
used to signal that the trigger performed the necessary data
208208
modifications in the view. This will cause the count of the number
209209
of rows affected by the command to be incremented. For
210-
<command>INSERT</> and <command>UPDATE</> operations, the trigger
210+
<command>INSERT</> and <command>UPDATE</> operations only, the trigger
211211
may modify the <varname>NEW</> row before returning it. This will
212212
change the data returned by
213213
<command>INSERT RETURNING</> or <command>UPDATE RETURNING</>,

0 commit comments

Comments
 (0)