Clarify how triggers relate to transactions - Mailing list pgsql-docs

From PG Doc comments form
Subject Clarify how triggers relate to transactions
Date
Msg-id 161953360822.695.15805897835151971142@wrigleys.postgresql.org
Whole thread Raw
Responses Re: Clarify how triggers relate to transactions  (Laurenz Albe <laurenz.albe@cybertec.at>)
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/13/sql-createtrigger.html
Description:

https://www.postgresql.org/docs/current/sql-createtrigger.html mentions the
word "transaction" only once, in reference specifically to constraint
triggers: "They can be fired either at the end of the statement causing the
triggering event, or at the end of the containing transaction; in the latter
case they are said to be deferred."

If I understand correctly, it would be helpful to add this sentence or a
corrected version of it: "Triggers always execute in the same transaction as
the triggering event, and if a trigger fails, the transaction is rolled
back."

pgsql-docs by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: "68.4. Visibility Map" change suggestion.
Next
From: Laurenz Albe
Date:
Subject: Re: Clarify how triggers relate to transactions