From 2af0971f35a4a7b87312b83782d9bb0cc6a40ad0 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 19 May 2013 22:03:32 -0400 Subject: Clarify documentation of EXPLAIN (TIMING OFF) option. Clarify that this option doesn't suppress measurement of the statement's total runtime. Greg Smith --- src/backend/commands/explain.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/backend/commands/explain.c') diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index 38ce0efe031..c6398e3c8e7 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -414,6 +414,10 @@ ExplainOnePlan(PlannedStmt *plannedstmt, IntoClause *into, ExplainState *es, if (es->buffers) instrument_option |= INSTRUMENT_BUFFERS; + /* + * We always collect timing for the entire statement, even when + * node-level timing is off, so we don't look at es->timing here. + */ INSTR_TIME_SET_CURRENT(starttime); /* -- cgit v1.2.3