From 89fa551808e3d4da4325f5ccf20d26d731bc577f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 18 Sep 2001 01:59:07 +0000 Subject: EXPLAIN ANALYZE feature to measure and show actual runtimes and tuple counts alongside the planner's estimates. By Martijn van Oosterhout, with some further work by Tom Lane. --- src/backend/executor/execAmi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/backend/executor/execAmi.c') diff --git a/src/backend/executor/execAmi.c b/src/backend/executor/execAmi.c index 3c0e029fd3c..6303613faa9 100644 --- a/src/backend/executor/execAmi.c +++ b/src/backend/executor/execAmi.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: execAmi.c,v 1.58 2001/03/22 06:16:12 momjian Exp $ + * $Id: execAmi.c,v 1.59 2001/09/18 01:59:06 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -29,6 +29,7 @@ #include "access/heapam.h" #include "catalog/heap.h" #include "executor/execdebug.h" +#include "executor/instrument.h" #include "executor/nodeAgg.h" #include "executor/nodeAppend.h" #include "executor/nodeGroup.h" @@ -260,6 +261,8 @@ ExecCloseR(Plan *node) void ExecReScan(Plan *node, ExprContext *exprCtxt, Plan *parent) { + if (node->instrument) + InstrEndLoop(node->instrument); if (node->chgParam != NULL) /* Wow! */ { -- cgit v1.2.3