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 1iKdYN-0003sQ-EQ for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Oct 2019 07:17:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iKdYL-0007aE-RA for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Oct 2019 07:17:01 +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 1iKdYL-0007Zd-F8 for pgsql-bugs@lists.postgresql.org; Wed, 16 Oct 2019 07:17:01 +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 1iKdYJ-0000K4-1T for pgsql-bugs@lists.postgresql.org; Wed, 16 Oct 2019 07:17:00 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x9G7Gu4T009950; Wed, 16 Oct 2019 03:16:56 -0400 From: Tom Lane To: Maciek Sakrejda cc: pgsql-bugs@lists.postgresql.org Subject: Re: Duplicate Workers entries in some EXPLAIN plans In-reply-to: References: Comments: In-reply-to Maciek Sakrejda message dated "Tue, 15 Oct 2019 14:11:43 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8977.1571210216.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 16 Oct 2019 09:16:56 +0200 Message-ID: <8978.1571210216@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Maciek Sakrejda writes: > I ran into an odd behavior with some EXPLAIN results in Postgres 11.5. I > noticed this with JSON format first, but similar issues exist with the > other formats as well for this query. I think I can follow up with the > query and full plan if needed, but essentially, the issue is that the So= rt > node has two different entries for the "Workers" key (something that > technically JSON does allow, but such JSON structures are very difficult= to > work with, and JSON library support for them is poor). Yeah, this was already complained of here: https://www.postgresql.org/message-id/flat/41ee53a5-a36e-cc8f-1bee-63f6565= bb1ee%40dalibo.com I think the text-mode output is intentional, but the other formats need more work. We also need to think about whether we can change this without big backwards-compatibility problems. regards, tom lane