diff options
| author | Tom Lane | 2005-03-25 21:58:00 +0000 |
|---|---|---|
| committer | Tom Lane | 2005-03-25 21:58:00 +0000 |
| commit | adb1a6e95b2087e44c845edc15c28a87f5ba7ac1 (patch) | |
| tree | 262134a0f4ec11fe71f1963d4531b71f2534aea3 /src/include/commands/trigger.h | |
| parent | 08890b407e976e4871f2024ed5a3071d0fa510a6 (diff) | |
Improve EXPLAIN ANALYZE to show the time spent in each trigger when
executing a statement that fires triggers. Formerly this time was
included in "Total runtime" but not otherwise accounted for.
As a side benefit, we avoid re-opening relations when firing non-deferred
AFTER triggers, because the trigger code can re-use the main executor's
ResultRelInfo data structure.
Diffstat (limited to 'src/include/commands/trigger.h')
| -rw-r--r-- | src/include/commands/trigger.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/commands/trigger.h b/src/include/commands/trigger.h index 1f84b0eaa9a..1aacccc8110 100644 --- a/src/include/commands/trigger.h +++ b/src/include/commands/trigger.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/commands/trigger.h,v 1.51 2004/12/31 22:03:28 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/commands/trigger.h,v 1.52 2005/03/25 21:57:59 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -156,7 +156,7 @@ extern void ExecARUpdateTriggers(EState *estate, extern void AfterTriggerBeginXact(void); extern void AfterTriggerBeginQuery(void); -extern void AfterTriggerEndQuery(void); +extern void AfterTriggerEndQuery(EState *estate); extern void AfterTriggerEndXact(void); extern void AfterTriggerAbortXact(void); extern void AfterTriggerBeginSubXact(void); |
