]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Move afterTriggerFiringDepth into AfterTriggersData master github/master
authorAmit Langote <amitlan@postgresql.org>
Fri, 10 Apr 2026 07:16:07 +0000 (16:16 +0900)
committerAmit Langote <amitlan@postgresql.org>
Fri, 10 Apr 2026 07:17:58 +0000 (16:17 +0900)
commitd6e96bacd3c05f1a2c1e350d04cc450e91311299
treef8688920c0a7e3f6b4388355b48cc8338776b207
parentf6936bf9da58afd167787635863bae387ae5ba35
Move afterTriggerFiringDepth into AfterTriggersData

The static variable afterTriggerFiringDepth introduced by commit
5c54c3ed1b9 is logically part of the after-trigger state and in
hindsight should have been a field in AfterTriggersData alongside
query_depth and the other per-transaction after-trigger state.
Move it there as firing_depth.  Also update its comment to
accurately reflect its sole remaining purpose: signaling to
AfterTriggerIsActive() that after-trigger firing is active.

Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/CA+HiwqFt4NGTNk7BinOsHHM48E9zGAa852vCfGoSe1bbL=JNFQ@mail.gmail.com
src/backend/commands/trigger.c