Re: Default gucs for EXPLAIN

Поиск
Список
Период
Сортировка
От Vik Fearing
Тема Re: Default gucs for EXPLAIN
Дата
Msg-id 86d63f11-8b8d-760e-e62b-90a0f3744709@postgresfriends.org
обсуждение исходный текст
Ответ на Re: Default gucs for EXPLAIN  (Justin Pryzby <pryzby@telsasoft.com>)
Ответы Re: Default gucs for EXPLAIN  (Fabien COELHO <coelho@cri.ensmp.fr>)
Re: Default gucs for EXPLAIN  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Default gucs for EXPLAIN  (Justin Pryzby <pryzby@telsasoft.com>)
Список pgsql-hackers
On 5/23/20 6:12 PM, Justin Pryzby wrote:

> The patch adds new GUCs for each explain() option.

Thank you for looking at it!

> Would it be better to make a GUC called default_explain_options which might say
> "COSTS ON, ANALYZE ON, VERBOSE OFF, BUFFERS TBD, FORMAT TEXT, ..."
> ..and parsed using the same thing that parses the existing options (which would
> need to be factored out of ExplainQuery()).
I do not think that would be better, no.

> Do we really want default_explain_analyze ?
> It sounds like bad news that EXPLAIN DELETE might or might not remove rows
> depending on the state of a variable.

I have had sessions where not using ANALYZE was the exception, not the
rule.  I would much prefer to type  EXPLAIN (ANALYZE OFF)  in those cases.

> I think this should be split into two patches:
> One to make the default explain options configurable, and a separate patch to
> change the defaults.

This patch does not change the defaults, so I'm not sure what you mean here?
-- 
Vik Fearing



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Default gucs for EXPLAIN
Следующее
От: Vik Fearing
Дата:
Сообщение: Re: Default gucs for EXPLAIN