mirror of
https://github.com/postgres/postgres.git
synced 2025-07-23 03:21:12 +03:00
Doc: improve description of which role runs a trigger.
Refine wording from commit 01463e1cc
.
Author: Noah Misch <noah@leadboat.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/20250605163441.2f.nmisch@google.com
This commit is contained in:
@ -129,10 +129,9 @@
|
||||
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.
|
||||
Also, the trigger will always run as the role that queued the trigger
|
||||
event, unless the trigger function is marked as <literal>SECURITY
|
||||
DEFINER</literal>, in which case it will run as the function owner.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
Reference in New Issue
Block a user