Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rRx18-00ANCb-U3 for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jan 2024 16:19:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rRx17-004xSC-E7 for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jan 2024 16:19:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rRx16-004xS3-3v for pgsql-hackers@lists.postgresql.org; Mon, 22 Jan 2024 16:19:20 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rRx13-002oej-JF for pgsql-hackers@postgresql.org; Mon, 22 Jan 2024 16:19:18 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id CC8935C0180; Mon, 22 Jan 2024 11:19:16 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 22 Jan 2024 11:19:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1705940356; x= 1706026756; bh=xnOSZS3vqR0otoJUK9dOfp/KuONY/F1cR5ErQWSWj5M=; b=U Kz57YaEUYP9nK+wPLJ/z3mb/5L3JwkZ/J5Kx5P71Zd8dvBfVv4jWqfPoE3Ab58Ku oBxGiyIUfU4a8vHnWcAs40MCOQrNncX3allRBJfBUloDNQYIpiZoWOv85AIcEH4X tBTvFe2t+m4IwEAaNNYJMIGs069D4xokYBw+Hvi18DYmvmqPdBH0S02hvsAey6OL kKZLVUkPalDlAfMUqgDO3lN/fngE4f4BcfzZBz7YgMQc6qai+wRrzwfa/XR/jfDk 9WAr+mudOVfDSEOzCRTaozK64nUGnWA1k49EQDDH9eC4kmJKbae7zmDvoQI+2Jwn C29diJf/naG33NFbSYAQw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekiedgkeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 Jan 2024 11:19:16 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1705940354; bh=sxyqdi3AtryFzc0un3/CKATWtxtgups64wK56yirGWM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=V905mcwRRjOzn+P0W5GlP5lsYj631TbnhE4ckTvit8z2Rx5a402Gh/WeVk+WLZg4q sL4udTf9Mk+uTGey8hRQVnnRtsb2Gkh5qtEpyXQgKuR2f2cVSze/YMJwKpBaist6xO G6wrYdhEfv1hnF/UBk39NO7icfQuBlhSisgabkVsopSOtcw9ZlZSpHFi/DfNxei/cY J763vlNoJmNYyTD9U9LrI6ap5tieuKzG9BcoDCTbFI5v6Ee43S2x+stJ6jLgMr2Vcx EP8+kpQ4cTknT/CP3T9pZ43WU4ZpaFO3toIR7z0o9JMLYtrRIO6WOPmzS/SPmn0PIA 743iMVYFwT0cQ== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 7FA7091; Mon, 22 Jan 2024 17:19:14 +0100 (CET) Date: Mon, 22 Jan 2024 17:19:14 +0100 From: Alvaro Herrera To: Amit Langote Cc: Andres Freund , Erik Rijkers , jian he , Andrew Dunstan , PostgreSQL-development Subject: Re: remaining sql/json patches Message-ID: <202401221619.ragf2vnbyopl@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202401181711.qxjxpnl3ohnw@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Jan-18, Alvaro Herrera wrote: > > commands/explain.c (Hmm, I think this is a preexisting bug actually) > > > > 3893 18 : case T_TableFuncScan: > > 3894 18 : Assert(rte->rtekind == RTE_TABLEFUNC); > > 3895 18 : if (rte->tablefunc) > > 3896 0 : if (rte->tablefunc->functype == TFT_XMLTABLE) > > 3897 0 : objectname = "xmltable"; > > 3898 : else /* Must be TFT_JSON_TABLE */ > > 3899 0 : objectname = "json_table"; > > 3900 : else > > 3901 18 : objectname = NULL; > > 3902 18 : objecttag = "Table Function Name"; > > 3903 18 : break; > > Indeed I was completely wrong about this, and in order to gain coverage the only thing we needed was to add an EXPLAIN that uses the JSON format. I did that just now. I think your addition here works just fine. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/