Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ivqmP-0006fn-6w for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Jan 2020 22:53:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ivqmN-0005gH-OI for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Jan 2020 22:53:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ivqmN-0005g9-Et for pgsql-hackers@lists.postgresql.org; Sun, 26 Jan 2020 22:53:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ivqmH-000774-2L for pgsql-hackers@lists.postgresql.org; Sun, 26 Jan 2020 22:53:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 00QMr9ix018495; Sun, 26 Jan 2020 17:53:09 -0500 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org Subject: Re: EXPLAIN's handling of output-a-field-or-not decisions 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> Comments: In-reply-to Andres Freund message dated "Sun, 26 Jan 2020 14:42:54 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18493.1580079189.1@sss.pgh.pa.us> Date: Sun, 26 Jan 2020 17:53:09 -0500 Message-ID: <18494.1580079189@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund 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