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 1phT2G-00060F-S3 for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Mar 2023 10:28:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1phT2F-00070c-8S for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Mar 2023 10:28:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phT2E-00070T-V4 for pgsql-hackers@lists.postgresql.org; Wed, 29 Mar 2023 10:28:06 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phT2C-0005GY-62 for pgsql-hackers@postgresql.org; Wed, 29 Mar 2023 10:28:05 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8BE5C5C0170; Wed, 29 Mar 2023 06:28:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 29 Mar 2023 06:28:02 -0400 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:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1680085682; x= 1680172082; bh=48u1lCWKboTgR1BGhpH72F+WIiH+b+GRLQW7t8qK2Bc=; b=G U88Vcj4flvUmzSYjKqp2mh0avlBzHf5tnu+QeOUaLtoOY1LOrDYJJ5SPUuEdwBK8 +p/6pMf88dyZIe1Ij+BpD7r8i9C3zotbDusDkhICorSDCZqwcLHQfprhgNZBdHqv kwUTEuFFRcCfW3To1auG59wihhCD9gIJM87wkny+28wrgMcJp/d/DDtUoRH9ls7D z0GReyRzdij9COGCVicsoQHijPLblrGEDNbl1OI+T3tpDvZekUunFXHPBWfzhZig J7h0njauM/3bHU+RYCu1KNYndC/XFOu8fll556IkpNCrxUL/tHFH+J8/QSxeJcoT ffzSypw/nhwZoD1fJhJdw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdehiedgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 29 Mar 2023 06:28:01 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id E64C4386; Wed, 29 Mar 2023 12:27:58 +0200 (CEST) Date: Wed, 29 Mar 2023 12:27:58 +0200 From: Alvaro Herrera To: Erik Rijkers Cc: Andrew Dunstan , Amit Langote , Peter Eisentraut , Andres Freund , vignesh C , PostgreSQL-development , e.indrupskaya@postgrespro.ru Subject: Re: SQL/JSON revisited Message-ID: <20230329102758.trybzdwbwajrf4mv@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <91cf8a3a-efc9-9e1c-351e-0f81677dc79f@xs4all.nl> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Mar-28, Erik Rijkers wrote: > In the json_arrayagg() description, it says: > 'If ABSENT ON NULL is specified, any NULL values are omitted.' > That's true, but as omitting NULL values is the default (i.e., also without > that clause) maybe it's better to say: > 'Any NULL values are omitted unless NULL ON NULL is specified' Doh, somehow I misread your report and modified the json_object() documentation instead after experimenting with it (so now the ABSENT/NULL ON NULL clause is inconsistenly described everywhere). Would you mind submitting a patch fixing this mistake? ... and pushed it now, after some more meddling. I'll rebase the rest of the series now. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Entristecido, Wutra (canción de Las Barreras) echa a Freyr a rodar y a nosotros al mar"