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: pgsql-hackers@lists.postgresql.org
Subject: Re: EXPLAIN's handling of output-a-field-or-not decisions
Date: Sun, 26 Jan 2020 16:54:58 -0500
Message-ID: <16192.1580075698@sss.pgh.pa.us> (raw)
In-Reply-To: <20200126212446.24hul2zl2oxrs37l@alap3.anarazel.de>
References: <19416.1580069629@sss.pgh.pa.us>
	<20200126212446.24hul2zl2oxrs37l@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> On 2020-01-26 15:13:49 -0500, Tom Lane wrote:
>> The other offender is the JIT stuff: it prints if COSTS is on and
>> there's some JIT activity to report, and otherwise you get nothing.
>> This is OK for text mode but it's bogus for the other formats.
>> Since we just rearranged EXPLAIN's JIT output anyway, now seems like
>> a good time to fix it.

> No objection. I think the current choice really is just about hiding JIT
> information in the cases where we display explain output in the
> tests. That output can't change depending on the build environment and
> settings (it's e.g. hugely useful to force all queries to be JITed for
> coverage).

Right, but then ...

> One concern I do have is that I think we need the overall time for JIT
> to be displayed regardless of the JIT option.

... how are you going to square that desire with not breaking the
regression tests?

>> Another debatable question is whether to print anything in non-JIT
>> builds.

> Hm. I don't think I have an opinion on this. I can see an argument
> either way.

After a bit more thought I'm leaning to "print nothing", since as you say
tools would have to cope with that anyway if they want to work with old
releases.  Also, while it's not that hard to print dummy data for JIT
even in a non-JIT build, I can imagine some future feature where it
*would* be hard.  So setting a precedent that we must provide dummy
output for unimplemented features could come back to bite us.

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <16192.1580075698@sss.pgh.pa.us>
Permalink:  ../16192.1580075698@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16192.1580075698@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de
  Subject: Re: EXPLAIN's handling of output-a-field-or-not decisions
  In-Reply-To: <16192.1580075698@sss.pgh.pa.us>
  References: <19416.1580069629@sss.pgh.pa.us> <20200126212446.24hul2zl2oxrs37l@alap3.anarazel.de> <16192.1580075698@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