diff options
author | Robert Haas <rhaas@postgresql.org> | 2012-02-07 11:23:04 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2012-02-07 11:23:04 -0500 |
commit | af7914c6627bcf0b0ca614e9ce95d3f8056602bf (patch) | |
tree | 23633b1c4de9e6bbbc9cea30895f8b4ee74e4c01 /src/include/commands/explain.h | |
parent | 1631598ea204a3b05104f25d008b510ff5a5c94a (diff) | |
download | postgresql-af7914c6627bcf0b0ca614e9ce95d3f8056602bf.tar.gz |
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/explain.h')
-rw-r--r-- | src/include/commands/explain.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/commands/explain.h b/src/include/commands/explain.h index 3443259b00..a987c43124 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 */ |