diff options
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/trigger.sgml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/src/sgml/trigger.sgml b/doc/src/sgml/trigger.sgml index a9abaab9056..c3c0faf7a1b 100644 --- a/doc/src/sgml/trigger.sgml +++ b/doc/src/sgml/trigger.sgml @@ -129,6 +129,10 @@ In all cases, a trigger is executed as part of the same transaction as the statement that triggered it, so if either the statement or the trigger causes an error, the effects of both will be rolled back. + Also, the trigger will always run in the security context of the role + that executed the statement that caused the trigger to fire, unless + the trigger function is defined as <literal>SECURITY DEFINER</literal>, + in which case it will run as the function owner. </para> <para> |