docs: clarify that only INSERT and UPDATE triggers can mod. NEW
authorBruce Momjian <[email protected]>
Thu, 7 Nov 2019 20:49:59 +0000 (15:49 -0500)
committerBruce Momjian <[email protected]>
Thu, 7 Nov 2019 20:49:59 +0000 (15:49 -0500)
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

doc/src/sgml/trigger.sgml

index 1f02fe609a78446d4e149c808d27cc8629c85e22..b76481ac5dfa0ee3bcec771e1690876967540345 100644 (file)
     used to signal that the trigger performed the necessary data
     modifications in the view.  This will cause the count of the number
     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
     change the data returned by
     <command>INSERT RETURNING</> or <command>UPDATE RETURNING</>,