summaryrefslogtreecommitdiff
path: root/src/include/commands
diff options
context:
space:
mode:
authorRobert Haas2012-02-07 16:23:04 +0000
committerRobert Haas2012-02-07 16:23:04 +0000
commitaf7914c6627bcf0b0ca614e9ce95d3f8056602bf (patch)
tree23633b1c4de9e6bbbc9cea30895f8b4ee74e4c01 /src/include/commands
parent1631598ea204a3b05104f25d008b510ff5a5c94a (diff)
Add TIMING option to EXPLAIN, to allow eliminating of timing overhead.
Sometimes it may be useful to get actual row counts out of EXPLAIN (ANALYZE) without paying the cost of timing every node entry/exit. With this patch, you can say EXPLAIN (ANALYZE, TIMING OFF) to get that. Tomas Vondra, reviewed by Eric Theise, with minor doc changes by me.
Diffstat (limited to 'src/include/commands')
-rw-r--r--src/include/commands/explain.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/commands/explain.h b/src/include/commands/explain.h
index 3443259b009..a987c431242 100644
--- a/src/include/commands/explain.h
+++ b/src/include/commands/explain.h
@@ -31,6 +31,7 @@ typedef struct ExplainState
bool analyze; /* print actual times */
bool costs; /* print costs */
bool buffers; /* print buffer usage */
+ bool timing; /* print timing */
ExplainFormat format; /* output format */
/* other states */
PlannedStmt *pstmt; /* top of plan */