diff options
| author | Alvaro Herrera | 2012-01-25 16:15:29 +0000 |
|---|---|---|
| committer | Alvaro Herrera | 2012-01-25 16:22:54 +0000 |
| commit | 74ab96a45ef6259aa6a86a781580edea8488511a (patch) | |
| tree | 92415eea1e32bb33c68b9fdbbdc5c57732d78c68 /src/include/catalog | |
| parent | 6d5aae7afacc564ead2af88c76b13cfc55750556 (diff) | |
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
Diffstat (limited to 'src/include/catalog')
| -rw-r--r-- | src/include/catalog/pg_proc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h index b6ac1959cc1..ef5ca3047d9 100644 --- a/src/include/catalog/pg_proc.h +++ b/src/include/catalog/pg_proc.h @@ -2698,6 +2698,9 @@ DESCR("statistics: reset collected statistics for a single table or index in the DATA(insert OID = 3777 ( pg_stat_reset_single_function_counters PGNSP PGUID 12 1 0 0 0 f f f f f v 1 0 2278 "26" _null_ _null_ _null_ _null_ pg_stat_reset_single_function_counters _null_ _null_ _null_ )); DESCR("statistics: reset collected statistics for a single function in the current database"); +DATA(insert OID = 3163 ( pg_trigger_depth PGNSP PGUID 12 1 0 0 0 f f f t f s 0 0 23 "" _null_ _null_ _null_ _null_ pg_trigger_depth _null_ _null_ _null_ )); +DESCR("current trigger depth"); + DATA(insert OID = 3778 ( pg_tablespace_location PGNSP PGUID 12 1 0 0 0 f f f t f s 1 0 25 "26" _null_ _null_ _null_ _null_ pg_tablespace_location _null_ _null_ _null_ )); DESCR("tablespace location"); |
