Add pg_trigger_depth() function
Alvaro Herrera <alvherre@alvh.no-ip.org>
Add pg_trigger_depth() function This reports the depth level of triggers currently in execution, or zero if not called from inside a trigger. No catversion bump in this patch, but you have to initdb if you want access to the new function. Author: Kevin Grittner
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +7 −0 |
| src/backend/commands/trigger.c | modified | +20 −1 |
| src/include/catalog/pg_proc.h | modified | +3 −0 |
| src/include/commands/trigger.h | modified | +2 −0 |
| src/test/regress/expected/triggers.out | modified | +117 −0 |
| src/test/regress/sql/triggers.sql | modified | +64 −0 |