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/executor/instrument.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/executor/instrument.h')
| -rw-r--r-- | src/include/executor/instrument.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/executor/instrument.h b/src/include/executor/instrument.h index 8936c5cce23..0540fd0da71 100644 --- a/src/include/executor/instrument.h +++ b/src/include/executor/instrument.h @@ -6,7 +6,7 @@ * * Copyright (c) 2001-2005, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/executor/instrument.h,v 1.9 2005/03/20 22:27:52 tgl Exp $ + * $PostgreSQL: pgsql/src/include/executor/instrument.h,v 1.10 2005/03/25 21:57:59 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -70,7 +70,7 @@ typedef struct Instrumentation double nloops; /* # of run cycles for this node */ } Instrumentation; -extern Instrumentation *InstrAlloc(void); +extern Instrumentation *InstrAlloc(int n); extern void InstrStartNode(Instrumentation *instr); extern void InstrStopNode(Instrumentation *instr, bool returnedTuple); extern void InstrEndLoop(Instrumentation *instr); |
