]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
docs: clarify that only INSERT and UPDATE triggers can mod. NEW
authorBruce Momjian <bruce@momjian.us>
Thu, 7 Nov 2019 20:49:59 +0000 (15:49 -0500)
committerBruce Momjian <bruce@momjian.us>
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 be9c2284481b0b7a075c30c0333b6efb7b822aef..f372f0ab8e9b9388899d569692c17d25513ff848 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</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
     change the data returned by
     <command>INSERT RETURNING</command> or <command>UPDATE RETURNING</command>,