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 1sMQNl-002Fg8-0F for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Jun 2024 11:00:09 +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 1sMQNj-003TRK-7x for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Jun 2024 11:00:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sMQNi-003TRB-Um for pgsql-hackers@lists.postgresql.org; Wed, 26 Jun 2024 11:00:07 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sMQNg-003dbO-5y for pgsql-hackers@postgresql.org; Wed, 26 Jun 2024 11:00:06 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-52ce6a9fd5cso3163138e87.3 for ; Wed, 26 Jun 2024 04:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719399603; x=1720004403; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ma/GzLSgR3kfvtefTOrpMSPXLb7g5bV1SZYjG1wAFFg=; b=GpnkkVv8nuWHZUpuzvCfuJx4xv5G5tfdyUgws19qRgpCpeS6XjWbl5nIZFwV0TLdrs 5D98RXA/aHFT3neWliq+N/VsI5Na6tRYo9U5xszQdOiMw8Dd3l4cmrl9p8hQrV+aO9Z4 FoOHmMGpykchCZ2jehmrFFjx4dni4Eu+BxXeOTZbLD1gv3arAGt3fdXUut1o0JWEer7L kq6XkO8y/OwcR3oiYyLcLNlvGhdn1zr0KijI+vksvmQeX8Myj9bID5j7TTLKYrrJuja5 dkQDeFZKzmBPvLsclNbBB96ChszXQUrabYd70NQqa01wRdDYPsq/1EalX4upH/bq953A +hkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719399603; x=1720004403; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ma/GzLSgR3kfvtefTOrpMSPXLb7g5bV1SZYjG1wAFFg=; b=XoCMhxCdTx2JsuwsMtYQQ3SZX3uCpULHzBChOry49JzO/cWeTrfFQzXIn+VfK4YkZV OiLwjPbSbm4O86GFYrbq9KWFTBG6ewFTt+UAoYPR6g5231hh0AhqujpiNAjRQY5W+t9t 1NStM3TnBTaeI/HJDX64WhXIzC318rrYPmxzHZKw6lplztTRsbJQCJf9TVbeDEoEnEhL 33jZjDZt0onG8Lhv24v4LUhEsP4n7i25zTvYg339IqlcvtegWWeqPvGOsvbQ+uzh0DCC QZocu3SppwEOeuT19Hm+bCM6bCjj3ceN0+14ku1CREEEfxI7MF/hPhxGRRmQUmyQ8LrC ziMw== X-Forwarded-Encrypted: i=1; AJvYcCUHif6nGd7V5rBTq5fT5tmnDzgF4rM9y4RQgSbx8jvkjndibca0+6rYWrFyKVkTytM+rCiEqsUJJoKTtIWakO854Ix2v/IEHGbwd9MS X-Gm-Message-State: AOJu0YxEMYVQyeOCeoXqi2fwkaH94XaTubnaIAiWxOKiRDVTZfYaCJGw ftt0eywfCPIo1+M8Uj+ggO9Y1+l0gCr8w1V9p2C8r/RnipEYzw6h X-Google-Smtp-Source: AGHT+IGlDkRBJ9ot9AQH3MZL+7aI9OLYMOf842io/gICnqKFB7XZb9Y+qzuUM8GjGtY6lXIkaoGtSg== X-Received: by 2002:a05:6512:220c:b0:52c:e16e:6033 with SMTP id 2adb3069b0e04-52ce1832930mr7551957e87.2.1719399602610; Wed, 26 Jun 2024 04:00:02 -0700 (PDT) Received: from [1.0.0.7] ([81.23.167.104]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52cf2aa41a2sm432194e87.287.2024.06.26.04.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Jun 2024 04:00:02 -0700 (PDT) Message-ID: <058c856a-e090-ac42-ff00-ffe394f52a87@gmail.com> Date: Wed, 26 Jun 2024 14:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: remaining sql/json patches Content-Language: en-US To: jian he , Amit Langote Cc: Thom Brown , Alvaro Herrera , Tomas Vondra , Himanshu Upadhyaya , Erik Rijkers , Andres Freund , Andrew Dunstan , PostgreSQL-development References: From: Alexander Lakhin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, I'm not sure I've chosen the most appropriate thread for reporting the issue, but maybe you would like to look at code comments related to SQL/JSON constructors:  * Transform JSON_ARRAY() constructor.  *  * JSON_ARRAY() is transformed into json[b]_build_array[_ext]() call  * depending on the output JSON format. The first argument of  * json[b]_build_array_ext() is absent_on_null.  * Transform JSON_OBJECT() constructor.  *  * JSON_OBJECT() is transformed into json[b]_build_object[_ext]() call  * depending on the output JSON format. The first two arguments of  * json[b]_build_object_ext() are absent_on_null and check_unique. But the referenced functions were removed at [1]; Nikita Glukhov wrote: > I have removed json[b]_build_object_ext() and json[b]_build_array_ext(). (That thread seems too old for the current discussion.) Also, a comment above transformJsonObjectAgg() references json[b]_objectagg[_unique][_strict](key, value), but I could find json_objectagg() only. [1] https://www.postgresql.org/message-id/be40362b-7821-7422-d33f-fbf1c61bb3e3%40postgrespro.ru Best regards, Alexander