Re: Hide 'Execution time' in EXPLAIN (COSTS OFF) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Hide 'Execution time' in EXPLAIN (COSTS OFF)
Date
Msg-id 15155.1411493559@sss.pgh.pa.us
Whole thread Raw
In response to Re: Hide 'Execution time' in EXPLAIN (COSTS OFF)  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Hide 'Execution time' in EXPLAIN (COSTS OFF)  (Robert Haas <robertmhaas@gmail.com>)
Re: Hide 'Execution time' in EXPLAIN (COSTS OFF)  (Christoph Berg <cb@df7cb.de>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Sat, Sep 20, 2014 at 4:13 PM, Christoph Berg <cb@df7cb.de> 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.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Florian Weimer
Date:
Subject: Re: [REVIEW] Re: Compression of full-page-writes
Next
From: Tom Lane
Date:
Subject: Re: delta relations in AFTER triggers