doc PG 18 relnotes: add AFTER trigger user change item
authorBruce Momjian <[email protected]>
Sat, 7 Jun 2025 15:25:17 +0000 (11:25 -0400)
committerBruce Momjian <[email protected]>
Sat, 7 Jun 2025 15:25:17 +0000 (11:25 -0400)
Reported-by: Noah Misch
Discussion: https://postgr.es/m/20250603172123[email protected]

doc/src/sgml/release-18.sgml

index 268fa88cbe0e7c0a7ec42773b636405bbe6687a0..c5e60f88fdf15a1aba0cf973f4852ddff8a4225f 100644 (file)
@@ -157,6 +157,22 @@ Previously ALTER TABLE SET [UN]LOGGED did nothing, and the creation of an unlogg
 </para>
 </listitem>
 
+<!--
+Author: Tom Lane <[email protected]>
+2025-01-23 [01463e1cc] Ensure that AFTER triggers run as the instigating user.
+-->
+
+<listitem>
+<para>
+Execute AFTER triggers as the role that was active when trigger events were queued (Laurenz Albe)
+</para>
+
+<para>
+Previously such triggers were run as the role that was active at trigger execution time (e.g., at COMMIT).  This is significant for cases where the role is changed between queue time and
+transaction commit.
+</para>
+</listitem>
+
 <!--
 Author: Fujii Masao <[email protected]>
 2024-09-12 [fefa76f70] Remove old RULE privilege completely.