Print planning time only in EXPLAIN ANALYZE, not plain EXPLAIN.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 15 Oct 2014 22:50:13 +0000 (18:50 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 15 Oct 2014 22:50:13 +0000 (18:50 -0400)
commit90063a7612e2730f7757c2a80ba384bbe7e35c4b
tree2e106aa9065c7f8f5e9e1937252118a19c64da9d
parent076d29a1eed5fe51fb2b25b98fcde9dd7c506902
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.
contrib/auto_explain/auto_explain.c
doc/src/sgml/perform.sgml
doc/src/sgml/ref/explain.sgml
src/backend/commands/explain.c
src/include/commands/explain.h