Skip to content

Commit

Permalink
Clarify deferrable trigger docs (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterthomassen authored Aug 26, 2024
1 parent c02f3d4 commit a68c69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/deferrable.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ with transaction.atomic():

When a deferrable trigger is declared, the `timing` attribute can be adjusted at runtime using [pgtrigger.constraints][]. This function mimics Postgres's `SET CONSTRAINTS` statement. Check [the Postgres docs for more info](https://www.postgresql.org/docs/current/sql-set-constraints.html).

[pgtrigger.constraints][] takes the new timing value and a list of trigger URIs over which to apply the value. The value is in effect until the end of the transaction.
[pgtrigger.constraints][] takes the new timing value and (optionally) a list of trigger URIs over which to apply the value. The value is in effect until the end of the transaction.

Let's take our original example. We can set the trigger to immediately run, causing it to throw an error:

Expand Down

0 comments on commit a68c69c

Please sign in to comment.