Re: Review of: explain / allow collecting row counts without timing info

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Review of: explain / allow collecting row counts without timing info
Дата
Msg-id CA+TgmobAWB4D_a2_6VDMpUUurxBdea=hs7OxCgfy8smzb7sQLQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Review of: explain / allow collecting row counts without timing info  (Jeff Janes <jeff.janes@gmail.com>)
Ответы Re: Review of: explain / allow collecting row counts without timing info  ("Tomas Vondra" <tv@fuzzy.cz>)
Re: Review of: explain / allow collecting row counts without timing info  (Noah Misch <noah@leadboat.com>)
Re: Review of: explain / allow collecting row counts without timing info  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-hackers
On Sat, Jan 21, 2012 at 10:32 PM, Jeff Janes <jeff.janes@gmail.com> wrote:
> On Fri, Jan 13, 2012 at 3:07 PM, Tomas Vondra <tv@fuzzy.cz> wrote:
>>
>> Fixed. The default value of TIMING option did not work as intended, it
>> was set to true even for plain EXPLAIN (without ANALYZE). In that case
>> the EXPLAIN failed.
>>
>
> I've applied this over the "show Heap Fetches in EXPLAIN ANALYZE
> output for index-only scans" patch.  It applied and built and passes
> installcheck.
>
> I have not done a full review of this, but I want to say that I want
> this very much.  Not only can I get the row counts, but also the Heap
> Fetches and the output of BUFFERS, without the overhead of timing.  I
> haven't looked at contrib aspects of it at all.
>
> Thank you for making this.

+1.

After looking at this a bit, I think we can make the interface a bit
more convenient.  I'd like to propose that we call the EXPLAIN option
"ROWS" rather than "TIMING", and that we provide the row-count
information if *either* ROWS or ANALYZE is specified.

Then, if you want rows without timing, you can say this:

EXPLAIN (ROWS) query...

Rather than, as in the approach taken by the current patch:

EXPLAIN (ANALYZE, TIMING off) query...

...which is a little more long-winded.  This also has the nice
advantage of making the name of the EXPLAIN option match the name of
the INSTRUMENT flag.

Revised patch along those lines attached.  Barring objections, I'll
commit this version.

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

Вложения

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

Предыдущее
От: Joachim Wieland
Дата:
Сообщение: Re: patch for parallel pg_dump
Следующее
От: Marti Raudsepp
Дата:
Сообщение: Re: Caching for stable expressions with constant arguments v6