docs: clarify that only INSERT and UPDATE triggers can mod. NEW
authorBruce Momjian
Thu, 7 Nov 2019 20:49:59 +0000 (15:49 -0500)
committerBruce Momjian
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 b5d506abcecffa7d6736dc4045b3cb38b0b5e2f9..06297895e9ce43460937e2549ff0685285037861 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
-    INSERT and UPDATE operations, the trigger
+    INSERT and UPDATE operations only, the trigger
     may modify the NEW row before returning it.  This will
     change the data returned by
     INSERT RETURNING or UPDATE RETURNING,