Re: New EXPLAIN option: ALL

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: New EXPLAIN option: ALL
Дата
Msg-id CAH2-WzmHPo5ReFZKcHvixx-HAiF8+j0syGCgH7pumY5y2v=Sew@mail.gmail.com
обсуждение исходный текст
Ответ на Re: New EXPLAIN option: ALL  (David Fetter <david@fetter.org>)
Список pgsql-hackers
On Tue, May 7, 2019 at 9:31 AM David Fetter <david@fetter.org> wrote:
> If you're tuning a query interactively, it's a lot simpler to prepend,
> for example,
>
>     EXPLAIN (ALL, FORMAT JSON)
>
> to it than to prepend something along the lines of
>
>     EXPLAIN(ANALYZE, VERBOSE, COSTS, BUFFERS, SETTINGS, TIMING, SUMMARY, PARTRIDGE_IN_A_PEAR_TREE, FORMAT JSON)
>
> to it.

FWIW, I have the following in my psqlrc:

\set ea 'EXPLAIN (ANALYZE, SETTINGS, VERBOSE, BUFFERS) '

The idea behind that is that I can prepend ":ea" as needed, rather
than doing a lot of typing each time, as in:

:ea SELECT ...


--
Peter Geoghegan



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Fuzzy thinking in is_publishable_class
Следующее
От: Tom Lane
Дата:
Сообщение: Re: make \d pg_toast.foo show its indices