Move afterTriggerFiringDepth into AfterTriggersData
Amit Langote <amitlan@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/trigger.c | modified | +18 −18 |
Discussion
- Eliminating SPI / SQL from some RI triggers - take 3 69 messages · 2024-12-20 → 2026-04-22