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 17:53:09 -0500
Message-ID: <18494.1580079189@sss.pgh.pa.us> (raw)
In-Reply-To: <20200126224254.c3wvppgwh2w4u3sj@alap3.anarazel.de>
References: <19416.1580069629@sss.pgh.pa.us>
	<20200126212446.24hul2zl2oxrs37l@alap3.anarazel.de>
	<16192.1580075698@sss.pgh.pa.us>
	<20200126224254.c3wvppgwh2w4u3sj@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> On 2020-01-26 16:54:58 -0500, Tom Lane wrote:
>> ... how are you going to square that desire with not breaking the
>> regression tests?

> Well, that's how we arrived at turning off JIT information when COSTS
> OFF, because that's already something all the EXPLAINs in the regression
> tests have to do. I do not want to regress from the current state, with
> regard to both regression tests, and seeing at least a top-line time in
> the normal EXPLAIN ANALYZE cases.

Right, but that's still just a hack.

> I've previously wondered about adding a REGRESS option to EXPLAIN would
> not actually be a good one, so we can move the magic into that, rather
> than options that are also otherwise relevant.

I'd be inclined to think about a GUC actually.
force_parallel_mode = regress is sort of precedent for that,
and we do already have the infrastructure needed to force a
database-level GUC setting for regression databases.

I can see some advantages to making it an explicit EXPLAIN option
instead --- but unless we wanted to back-patch it, it'd be a real
pain in the rear for back-patching regression test cases.

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <18494.1580079189@sss.pgh.pa.us>
Permalink:  ../18494.1580079189@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18494.1580079189@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: <18494.1580079189@sss.pgh.pa.us>
  References: <19416.1580069629@sss.pgh.pa.us> <20200126212446.24hul2zl2oxrs37l@alap3.anarazel.de> <16192.1580075698@sss.pgh.pa.us> <20200126224254.c3wvppgwh2w4u3sj@alap3.anarazel.de> <18494.1580079189@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