Re: Planning time in explain/explain analyze

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Planning time in explain/explain analyze
Дата
Msg-id CA+TgmobJFb+yd-NeXD=QHaTdfFS1bqruAu4DD-=_VQBO90zfvw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Planning time in explain/explain analyze  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Planning time in explain/explain analyze
Список pgsql-hackers
On Mon, Dec 23, 2013 at 10:47 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>> On Mon, Dec 23, 2013 at 9:54 PM, Andreas Karlsson <andreas@proxel.se> wrote:
>>> Yeah, forgot to mention that we need some way to disable it in the tests.
>>> Either by not having it included in EXPLAIN or by adding an option to turn
>>> it off. Any suggestion on which would be preferable?
>
>> I would be tempted to display it only if (COSTS OFF) is not given.
>
> Yeah.  The alternatives seem to be:
>
> 1. Change a lot of regression tests.  This would be a serious PITA,
> not so much for the one-time cost as for every time we needed to
> back-patch a regression test that includes explain output.  -1.
>
> 2. Don't display the planning time by default, necessitating a new
> PLANNING_TIME ON option.  This has backwards compatibility to
> recommend it, but not much else.
>
> 3. Let COSTS OFF suppress it.

Another option would be to not display it by default, but make VERBOSE
show it.  However, I think making it controlled by COSTS is a better
fit.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Planning time in explain/explain analyze
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Logging WAL when updating hintbit