diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-10-15 18:50:13 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-10-15 18:50:13 -0400 |
commit | 90063a7612e2730f7757c2a80ba384bbe7e35c4b (patch) | |
tree | 2e106aa9065c7f8f5e9e1937252118a19c64da9d /src/include/commands/explain.h | |
parent | 076d29a1eed5fe51fb2b25b98fcde9dd7c506902 (diff) | |
download | postgresql-90063a7612e2730f7757c2a80ba384bbe7e35c4b.tar.gz postgresql-90063a7612e2730f7757c2a80ba384bbe7e35c4b.zip |
Print planning time only in EXPLAIN ANALYZE, not plain EXPLAIN.
We've gotten enough push-back on that change to make it clear that it
wasn't an especially good idea to do it like that. Revert plain EXPLAIN
to its previous behavior, but keep the extra output in EXPLAIN ANALYZE.
Per discussion.
Internally, I set this up as a separate flag ExplainState.summary that
controls printing of planning time and execution time. For now it's
just copied from the ANALYZE option, but we could consider exposing it
to users.
Diffstat (limited to 'src/include/commands/explain.h')
-rw-r--r-- | src/include/commands/explain.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/commands/explain.h b/src/include/commands/explain.h index 3488be39c38..d56beaac159 100644 --- a/src/include/commands/explain.h +++ b/src/include/commands/explain.h @@ -30,9 +30,10 @@ typedef struct ExplainState /* options */ bool verbose; /* be verbose */ bool analyze; /* print actual times */ - bool costs; /* print costs */ + bool costs; /* print estimated costs */ bool buffers; /* print buffer usage */ - bool timing; /* print timing */ + bool timing; /* print detailed node timing */ + bool summary; /* print total planning and execution timing */ ExplainFormat format; /* output format */ /* other states */ PlannedStmt *pstmt; /* top of plan */ |