aboutsummaryrefslogtreecommitdiff
path: root/src/include/commands
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2012-01-25 13:15:29 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2012-01-25 13:22:54 -0300
commit74ab96a45ef6259aa6a86a781580edea8488511a (patch)
tree92415eea1e32bb33c68b9fdbbdc5c57732d78c68 /src/include/commands
parent6d5aae7afacc564ead2af88c76b13cfc55750556 (diff)
downloadpostgresql-74ab96a45ef6259aa6a86a781580edea8488511a.tar.gz
postgresql-74ab96a45ef6259aa6a86a781580edea8488511a.zip
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/commands')
-rw-r--r--src/include/commands/trigger.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/commands/trigger.h b/src/include/commands/trigger.h
index ba0f32464e9..93033414d91 100644
--- a/src/include/commands/trigger.h
+++ b/src/include/commands/trigger.h
@@ -205,4 +205,6 @@ extern bool RI_Initial_Check(Trigger *trigger,
extern int RI_FKey_trigger_type(Oid tgfoid);
+extern Datum pg_trigger_depth(PG_FUNCTION_ARGS);
+
#endif /* TRIGGER_H */