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.96) (envelope-from ) id 1wIbjR-008GOI-0Y for pgsql-bugs@arkaria.postgresql.org; Fri, 01 May 2026 00:27:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wIbiQ-009Lt1-2Q for pgsql-bugs@arkaria.postgresql.org; Fri, 01 May 2026 00:26:46 +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.96) (envelope-from ) id 1wIbiQ-009Lst-1b for pgsql-bugs@lists.postgresql.org; Fri, 01 May 2026 00:26:46 +0000 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wIbiO-00000003bUg-24DP for pgsql-bugs@lists.postgresql.org; Fri, 01 May 2026 00:26:45 +0000 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-7dcd89701acso1285558a34.1 for ; Thu, 30 Apr 2026 17:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1777595204; cv=none; d=google.com; s=arc-20240605; b=PuEpNJapna0XrlgZN/WGuNbxxeQmbro4gYDMBflBwcQWBW4V9J7ldZRGh7enIZ0iCM m0JjrnPs9Psrri7LCZ4JmdvXiZNGeSWAlXyAy10f04x6AD+4JtvyBbIVSDAqO4h17QDH /FWWptO8RWLYnLPQo+ysaw2hEwUGC/vcQ1538L811ieMA/ZXUitZBRzpDSujpPYi8dXB mHQpspHcKt3Bfuh9ItnBwMqbK4z08pHQtRSeu3oHxEdWDXuoTXSvnpXMT5Vlr8sQTwbe GpIm/S5Qe40pLYaPNAS/1r82fIKcEsxrUfHUNS/xUWHtadJwF9KgcVsjeJqqJHwv6717 sRpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=drdDZiNJGhAfsumuvF9jtBuJvYbOwKodWZU25hDwa9E=; fh=qV/zWaVcNCHNtLhriJwkjs/G8fP8tkI26T1sIq29T4U=; b=FBMtRL7j6gQ9YYjWSHZrjbmhwmlXNfmrm+WADbpw6vbW8IHQFaVqWM7/5V/0PG4VrR Sc56t4XINPTM1m2CQFV11C7ebhf8MaL2jyzq9wXUoPwd6GC68FiZTM0ezrtxFo9vzAvM aK8Rm17dPPRd1jkJplOhHfngvTDfGECnNMD+VoWj8pWAbCu75jTHK2X+b0shP4xviyh2 j1hOFn/7bqei5KLm8nIt/5LmnQ214FlpbZ4H2F/2HuTSHHKQRHg0n367FL6mu2sWEPWk WMZ2VAyrsudmFf9WvPWZ7YxwyRvbm5n/ph3UeuBFUki3LdGreLdU35eh0ihRjgyHJqln Pk2g==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777595204; x=1778200004; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=drdDZiNJGhAfsumuvF9jtBuJvYbOwKodWZU25hDwa9E=; b=gPZ04ijYKn7pClXfoaCPXhOn5RIc8H/SjGeHxasojcHmDOQwmtzqJ2nD2yCDZnRBL+ 2lIKWMwZjcD/gCQ+OAGyAioOew+StnQjZYcHD+gSxmda0eDh76EEVrpLtrRD148Pii3T Xd1mmoZ6gJ12mpj+jGu656G0HjyP7dTSyJyWhcI7o7c0Fxy5X9c8kSAY0ATKfy6LOXt8 TxO84psB1Ho4oU/l6SHWSdc1E2wNctPf1YVjuCgSYT6vcDlLCPG+yA98ICqxVa+Qt7mN /9T8J50Bc4642oHJ2fuu3LrgsjiE2Z+vcKjonTgGG2k/zL1ygiyRpRJw2hqpGjadhYiw EgzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777595204; x=1778200004; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=drdDZiNJGhAfsumuvF9jtBuJvYbOwKodWZU25hDwa9E=; b=njZqB2q54sHNgNgUZUXoeUpE8YIGHKJsYAWAQz29MNZ/cxV97i+TsYX72KO/9cDswP 2O/BCXFl+fLQIqitRUKkzwEPrZK0TVUMSTi0cqKnK8mgwZtEyP9BnnwU7vIVsNaSpomh buBJ74qh4fFqDfRzWxOcCSUSErOY5j4LrVTphajx3T3V2kBFQwNblWm/2VEp9TP6cd0r V4UWOQZEn2xB+dlzseBMDAllXZBckV87c6xLROLCBTA2EVI5+LWbPcVsPzz6iVv9dW0d 8gr0KW5V3CZuQEyxiAEhQ81zPAyVdvjC97dEKRCqDOgmnBDT9OFQP7JQio8oKu3ervn+ evWQ== X-Forwarded-Encrypted: i=1; AFNElJ8LwVhvqdLhyo/LBo6/q8kJE1VULr4Ljc4DO64X4ELOHwwax81Ogg5CqyxRzpsIUbqiypcHp7MiTN7m@lists.postgresql.org X-Gm-Message-State: AOJu0YzImEVfAkLv3BzhDRX9gIEktp81I4ZcO2UmmMBxx/lyguNa8Tda swbcdZdfIQV9e35VTDoykSUfwkziQWyqa6NzsWPZnctDHH/pvVWJfYtm93m0VnFPC3Q2ov22hD2 TGsbCmtgDmajVvTQkEdHXYGwpB+UW3V0= X-Gm-Gg: AeBDieurUfWZlEScRm8AsjIrGd1E3aAI9OLYJ71v+KuLpTsvcM99Rnp+uQ9iGtVQfsb jMA+1n0bf/pgdlCTWd39j2M3+uZFT73HM+RD+pXCLLRXWVbHLz/VVBvVMb1iG7y+1ZWPVrMv9Ms fPeKcehdwij7fKEPedyEN+OVfqA84WM2tpdt8yXjmFAu1UuVPRfT3Hm9a6pze6Zpp93osMD3Hn3 DL0MEwo8DNrcE3LeFU22pZfxovamaQO6hOlpJ9+oyrb8XAq4K4hTlOs9KsyM9MfuuS9gmycaUaE wJoqqkxwtqzYVNdBeuk= X-Received: by 2002:a05:6820:16a3:b0:684:bf61:ed2d with SMTP id 006d021491bc7-6967a49ff17mr2894698eaf.1.1777595204251; Thu, 30 Apr 2026 17:26:44 -0700 (PDT) MIME-Version: 1.0 References: <501040.1772433449@sss.pgh.pa.us> <485641.1776738632@sss.pgh.pa.us> In-Reply-To: From: Richard Guo Date: Fri, 1 May 2026 09:26:32 +0900 X-Gm-Features: AVHnY4L5P7qZJ8kyOa1JMhlisSaQ37CtHEZhGziVQOrx32d13hzdtrUW8I5rrIc Message-ID: Subject: Re: BUG #19418: SQL/JSON JSON_VALUE() does not conform to ISO/IEC 9075-2:2023(E) 6.34 To: Melanie Plageman Cc: Nathan Bossart , Tom Lane , Amit Langote , Vik Fearing , lukas.eder@gmail.com, pgsql-bugs@lists.postgresql.org, rmt@lists.postgresql.org, =?UTF-8?Q?=C3=81lvaro_Herrera?= , Heikki Linnakangas Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, May 1, 2026 at 7:05=E2=80=AFAM Melanie Plageman wrote: > On Fri, Apr 24, 2026 at 3:58=E2=80=AFPM Nathan Bossart wrote: > > On Thu, Apr 23, 2026 at 09:55:10AM +0900, Richard Guo wrote: > > >> Hi RMT, > > >> > > >> I'd like to commit a fix for JSON_ARRAY(subquery) behavior that > > >> involves a user-visible incompatibility, and would appreciate your > > >> go/no-go since we're past feature freeze. > > >> > > >> Summary: > > >> > > >> - JSON_ARRAY(SELECT ...) currently returns NULL over an empty result > > >> set, but the SQL/JSON standard requires it to return '[]'. Fixing > > >> this changes user-visible output. > > >> > > >> - The same patch also fixes a deparsing issue: views defined with > > >> JSON_ARRAY(SELECT ...) are dumped back as the internal JSON_ARRAYAGG > > >> rewrite instead of the original syntax. > > I am fine with committing this for v19, assuming there is consensus on = the > > patch content. > > > > Heikki/Melanie: Any objections? > Nope. I'm +1 on committing this now. 19 is unreleased -- I see no > reason to wait a year. Thank you, Nathan and Melanie. I now have two of the three RMT approvals, so I believe I'm good to go. Will commit this shortly. - Richard