summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2019-11-07 20:49:59 +0000
committerBruce Momjian2019-11-07 20:49:59 +0000
commit87477b67713300a89b3088812142ccae239c1d75 (patch)
tree4bbec6c368ac0e6c4080e2dc20b87ae2a926c4fa
parentb20233aac74302d20f9ea6fae9b3b90155f7a373 (diff)
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
-rw-r--r--doc/src/sgml/trigger.sgml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/trigger.sgml b/doc/src/sgml/trigger.sgml
index 1f02fe609a7..b76481ac5df 100644
--- a/doc/src/sgml/trigger.sgml
+++ b/doc/src/sgml/trigger.sgml
@@ -172,7 +172,7 @@
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</>,