Re: Reporting planning time with EXPLAIN
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Stephen Frost <sfrost@snowman.net>, Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>, Amit Kapila <amit.kapila16@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2017-01-06T01:02:19Z
Lists: pgsql-hackers
On 2016-12-28 10:29:48 -0500, Tom Lane wrote: > How about just saying that the existing TIMING option turns this on, > if it's specified without ANALYZE? Right now that combination draws > an error: > > regression=# explain (timing on) select 1; > ERROR: EXPLAIN option TIMING requires ANALYZE > > so there's no existing usage that this would break. I don't like this much - I'd like (as previously stated in [1]) to be able to have an actual EXPLAIN ANALYZE (COSTS off, TIMING OFF) in tests because that shows the number of loops, rechecks, etc. Andres [1] http://archives.postgresql.org/message-id/20140603180548.GU24145%40awork2.anarazel.de
Commits
-
Expose explain's SUMMARY option
- f9b1a0dd403e 10.0 landed
-
Print planning time only in EXPLAIN ANALYZE, not plain EXPLAIN.
- 90063a7612e2 9.5.0 cited