Re: Explain Analyze (Rollback off) Suggestion

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Explain Analyze (Rollback off) Suggestion
Дата
Msg-id 6667.1590677567@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Explain Analyze (Rollback off) Suggestion  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Explain Analyze (Rollback off) Suggestion  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-hackers
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> The ANALYZE option should not be part of the GUC setup.

Yeah.  While I'm generally not in favor of putting GUCs into the mix
here, the only one that seriously scares me is a GUC that would affect
whether the EXPLAIN'd query executes or not.  A GUC that causes buffer
counts to be reported/not-reported is not going to result in data
destruction when someone forgets that it's on.

(BTW, adding an option for auto-rollback wouldn't change my opinion
about that.  Not all side-effects of a query can be rolled back.  Thus,
if there is an auto-rollback option, it mustn't be GUC-adjustable
either.)

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Resolving the python 2 -> python 3 mess
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Explain Analyze (Rollback off) Suggestion