↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / System Information Functions And Operators

pg_trigger_depth

Read the PG 18 manual

Returns 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

pg_trigger_depth () → integer
Returns the current nesting level of PostgreSQL triggers (0 if not called, directly or indirectly, from inside a trigger).
Version history 2
  1. 12 → 13 changed
  2. 9.1 → 9.2 added

Definition snapshot: b7bd9cda · English manual source