Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kVuzd-0001TN-Ok for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Oct 2020 11:12:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kVuzb-0002NK-4t for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Oct 2020 11:12:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kVuza-0002ND-V0 for pgsql-bugs@lists.postgresql.org; Fri, 23 Oct 2020 11:12:18 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kVuzY-0004j1-W8 for pgsql-bugs@lists.postgresql.org; Fri, 23 Oct 2020 11:12:18 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id A053A10C681B for ; Fri, 23 Oct 2020 13:12:14 +0200 (CEST) Received: from s498.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 8149B2E6CDDA; Fri, 23 Oct 2020 13:12:14 +0200 (CEST) Received: from s471.loopia.se (unknown [172.22.191.5]) by s498.loopia.se (Postfix) with ESMTP id 7C973489386; Fri, 23 Oct 2020 13:12:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s499.loopia.se ([172.22.191.5]) by s471.loopia.se (s471.loopia.se [172.22.190.11]) (amavisd-new, port 10024) with LMTP id zUj-k43uYm2q; Fri, 23 Oct 2020 13:12:14 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from [192.168.72.43] (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s499.loopia.se (Postfix) with ESMTPSA id E504E1CE5F62; Fri, 23 Oct 2020 13:12:13 +0200 (CEST) From: Daniel Gustafsson Message-Id: <90BD07DF-D050-48CE-958E-4B5E5FFCDA37@yesql.se> Content-Type: multipart/mixed; boundary="Apple-Mail=_D60C194E-2124-4C65-9701-BB2D2F819EB5" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.15\)) Subject: Re: BUG #16683: explain plan format xml produces invalid xml Date: Fri, 23 Oct 2020 13:12:13 +0200 In-Reply-To: <16683-8005033324ad34e9@postgresql.org> Cc: Tomas Vondra To: jal@etc.to, PostgreSQL mailing lists References: <16683-8005033324ad34e9@postgresql.org> X-Mailer: Apple Mail (2.3445.104.15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_D60C194E-2124-4C65-9701-BB2D2F819EB5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 23 Oct 2020, at 12:26, PG Bug reporting form = wrote: > Sort-Space is incorrectly finished with /Sort-Spaces Nice catch, it was introduced in the Incremental Sort patch, both for = disk and memory type sorts as per the attached (unless the opening of the group = was supposed to be "Sort Spaces" but singular seems the right choice here).=20= cheers ./daniel --Apple-Mail=_D60C194E-2124-4C65-9701-BB2D2F819EB5 Content-Disposition: attachment; filename=explain_sort_space.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="explain_sort_space.diff" Content-Transfer-Encoding: 7bit diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index 41317f1837..43f9b01e83 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -2827,7 +2827,7 @@ show_incremental_sort_group_info(IncrementalSortGroupInfo *groupInfo, ExplainPropertyInteger("Peak Sort Space Used", "kB", groupInfo->maxMemorySpaceUsed, es); - ExplainCloseGroup("Sort Spaces", memoryName.data, true, es); + ExplainCloseGroup("Sort Space", memoryName.data, true, es); } if (groupInfo->maxDiskSpaceUsed > 0) { @@ -2844,7 +2844,7 @@ show_incremental_sort_group_info(IncrementalSortGroupInfo *groupInfo, ExplainPropertyInteger("Peak Sort Space Used", "kB", groupInfo->maxDiskSpaceUsed, es); - ExplainCloseGroup("Sort Spaces", diskName.data, true, es); + ExplainCloseGroup("Sort Space", diskName.data, true, es); } ExplainCloseGroup("Incremental Sort Groups", groupName.data, true, es); --Apple-Mail=_D60C194E-2124-4C65-9701-BB2D2F819EB5--