pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: David Fetter <david@fetter.org>
Cc: PostgreSQL Development <pgsql-hackers@postgresql.org>
Subject: Re: New EXPLAIN option: ALL
Date: Tue, 07 May 2019 18:06:43 -0400
Message-ID: <4638.1557266803@sss.pgh.pa.us> (raw)
In-Reply-To: <20190507215449.3a4yb5kkoloq7yyw@alap3.anarazel.de>
References: <20190507073046.GI28936@fetter.org>
	<20190507154147.l32a3erg4mbycj7u@alap3.anarazel.de>
	<20190507163411.GM28936@fetter.org>
	<20190507164430.a7tig676hjzdnyyd@alap3.anarazel.de>
	<20190507212355.GQ28936@fetter.org>
	<20190507215449.3a4yb5kkoloq7yyw@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> As I said, I don't think ALL is a good idea under any name.  Like it
> just makes no sense to have ANALYZE, SUMMARY, VERBOSE, BUFFERS,
> SETTINGS, FORMAT controlled by one option, unless you call it DWIM. It's
> several separate axis (query is executed or not (ANALYZE), verbosity
> (SUMMARY, VERBOSE), collecting additional information (BUFFERS, TIMING),
> output format).

FWIW, I find this line of argument fairly convincing.  There may well
be a case for rethinking just how EXPLAIN's options behave, but "ALL"
doesn't seem like a good conceptual model.

One idea that comes to mind is that VERBOSE could be redefined as some
sort of package of primitive options, including all of the "additional
information" options, with the ability to turn individual ones off again
if you wanted.  So for example (VERBOSE, BUFFERS OFF) would give you
everything except buffer stats.  We'd need a separate flag/flags to
control what VERBOSE originally did, but that doesn't bother me ---
it's an opportunity for more clarity of definition, anyway.

I do feel that it's a good idea to keep ANALYZE separate. "Execute
the query or not" is a mighty fundamental thing.  I've never liked
that name for the option though --- maybe we could deprecate it
in favor of EXECUTE?

			regards, tom lane





view thread (49+ messages)  latest in thread

Message-ID: <4638.1557266803@sss.pgh.pa.us>
Permalink:  ../4638.1557266803@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4638.1557266803@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, david@fetter.org
  Subject: Re: New EXPLAIN option: ALL
  In-Reply-To: <4638.1557266803@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox