pgsql: Print planning time only in EXPLAIN ANALYZE, not plain EXPLAIN.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Print planning time only in EXPLAIN ANALYZE, not plain EXPLAIN.
Дата
Msg-id E1XeXOi-0005Mw-B7@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/9bb6b7c5ed617b34edf1a962c9405359822418d3

Modified Files
--------------
contrib/auto_explain/auto_explain.c |    1 +
doc/src/sgml/perform.sgml           |   25 ++++++-------------------
doc/src/sgml/ref/explain.sgml       |   19 +++++++------------
src/backend/commands/explain.c      |   10 +++++++---
src/include/commands/explain.h      |    5 +++--
5 files changed, 24 insertions(+), 36 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: pgsql: pg_dump: Reduce use of global variables
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Print planning time only in EXPLAIN ANALYZE, not plain EXPLAIN.