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 1ifTim-00030i-9s for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Dec 2019 19:01:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ifTik-0008FJ-OW for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Dec 2019 19:01:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ifTik-0008FC-Bh for pgsql-hackers@lists.postgresql.org; Thu, 12 Dec 2019 19:01:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ifTii-0000XI-0t for pgsql-hackers@lists.postgresql.org; Thu, 12 Dec 2019 19:01:53 +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 xBCJ1naZ018446; Thu, 12 Dec 2019 14:01:49 -0500 From: Tom Lane To: pgsql-hackers@lists.postgresql.org cc: Robert Haas Subject: force_parallel_mode = regress has a blind spot MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18444.1576177309.1@sss.pgh.pa.us> Date: Thu, 12 Dec 2019 14:01:49 -0500 Message-ID: <18445.1576177309@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I have just found out the hard way (cf commits 22864f6e0, 776a2c887) that if one uses EXPLAIN with both ANALYZE and VERBOSE selected, the output is not the same between force_parallel_mode = off and force_parallel_mode = regress. This seems to me to be quite broken; what's the point of force_parallel_mode = regress if it doesn't produce the same output? The reason there's a problem is that ExplainNode() will show per-worker detail if both es->analyze and es->verbose are set, even when the only reason there's a worker process is that force_parallel_mode injected a supposedly-invisible Gather. I don't see any way to fix this that doesn't involve some sort of "action at a distance". One could imagine hiding the per-worker detail if we're underneath a Gather that has invisible set to true, but it's not really clear to me that that would do the right things in a plan with multiple Gather nodes. Any thoughts about that? regards, tom lane