pg_trigger_depth () → integerReturns the current nesting level of PostgreSQL triggers (0 if not called, directly or indirectly, from inside a trigger).
Functions / System Information Functions And Operators
pg_trigger_depth
Read the PG 18 manualReturns the current nesting level of PostgreSQL triggers (0 if not called, directly or indirectly, from inside a trigger).
Reading PG 18current·documented in 16 of 27 versions, 9.2 to 20
Signatures & examples
Definition snapshot: b7bd9cda · English manual source