Re: Hide 'Execution time' in EXPLAIN (COSTS OFF)
От
Robert Haas
Тема
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF)
Дата
Msg-id
CA+TgmoZW_qFBmCdJRKJM04P-EmuJzOj=hQL2Dq7KVtPPjK62gQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Hide 'Execution time' in EXPLAIN (COSTS OFF) Andres Freund <andres@2ndquadrant.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Tom Lane <tgl@sss.pgh.pa.us>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Andres Freund <andres@2ndquadrant.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Andres Freund <andres@2ndquadrant.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Christoph Berg <cb@df7cb.de>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Robert Haas <robertmhaas@gmail.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Tom Lane <tgl@sss.pgh.pa.us>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Christoph Berg <cb@df7cb.de>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) David Rowley <dgrowleyml@gmail.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Andres Freund <andres@2ndquadrant.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Ronan Dunklau <ronan@dunklau.fr>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Tom Lane <tgl@sss.pgh.pa.us>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Christoph Berg <cb@df7cb.de>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Robert Haas <robertmhaas@gmail.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Tom Lane <tgl@sss.pgh.pa.us>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Andres Freund <andres@2ndquadrant.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Tom Lane <tgl@sss.pgh.pa.us>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) David Rowley <dgrowleyml@gmail.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Robert Haas <robertmhaas@gmail.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Tom Lane <tgl@sss.pgh.pa.us>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Andres Freund <andres@2ndquadrant.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Tom Lane <tgl@sss.pgh.pa.us>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) David Rowley <dgrowleyml@gmail.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Tom Lane <tgl@sss.pgh.pa.us>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) David Rowley <dgrowleyml@gmail.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Tom Lane <tgl@sss.pgh.pa.us>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Andres Freund <andres@2ndquadrant.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Tom Lane <tgl@sss.pgh.pa.us>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Andres Freund <andres@2ndquadrant.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Robert Haas <robertmhaas@gmail.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Ronan Dunklau <ronan.dunklau@dalibo.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Tom Lane <tgl@sss.pgh.pa.us>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Robert Haas <robertmhaas@gmail.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Robert Haas <robertmhaas@gmail.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Andres Freund <andres@2ndquadrant.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Robert Haas <robertmhaas@gmail.com>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Tom Lane <tgl@sss.pgh.pa.us>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Tom Lane <tgl@sss.pgh.pa.us>
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) Noah Misch <noah@leadboat.com>
On Tue, Sep 23, 2014 at 1:32 PM, Tom Lane wrote:
> Robert Haas writes:
>> On Sat, Sep 20, 2014 at 4:13 PM, Christoph Berg wrote:
>>> Can we have "EXPLAIN (timing off)" in 9.4+ hide the "Planning time"
>>> line? That would even be backwards compatible with 9.x where it would
>>> be a no-op.
>
>> I don't think that'll work becuase:
>
>> /* check that timing is used with EXPLAIN ANALYZE */
>> if (es.timing && !es.analyze)
>> ereport(ERROR,
>> (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
>> errmsg("EXPLAIN option TIMING
>> requires ANALYZE")));
>
> It looks to me like that would complain about EXPLAIN (TIMING ON),
> not the case Christoph is suggesting. What he proposes seems a bit
> odd and non-orthogonal, but we could make the code do it if we wanted.
Ah, right.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления